From: Ben Pfaff Date: Wed, 26 Aug 2009 19:51:39 +0000 (-0700) Subject: vswitchd: Fix bug in Ethernet address selection for bridge. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0babc06fb3cd2a6c80d730e3a8dda64cf6298500;p=openvswitch vswitchd: Fix bug in Ethernet address selection for bridge. This bug was introduced in the merge from the citrix branch in commit 8fef8c71 "Merge citrix into master." Thanks to Reid for characterizing the problem. Bug #1907. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 25df8d48..869d7172 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -741,6 +741,7 @@ bridge_pick_local_hw_addr(struct bridge *br, uint8_t ea[ETH_ADDR_LEN], !eth_addr_is_zero(iface_ea) && memcmp(iface_ea, ea, ETH_ADDR_LEN) < 0) { + memcpy(ea, iface_ea, ETH_ADDR_LEN); *hw_addr_iface = iface; } }