vswitchd: Fix use of uninitialized variable in bridge_pick_local_hw_addr().
authorBen Pfaff <blp@nicira.com>
Wed, 5 Aug 2009 21:50:54 +0000 (14:50 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 6 Aug 2009 23:57:06 +0000 (16:57 -0700)
commitba09980aaff81d5ba31aa221179740bc04680787
treec85e1b96560f21802b8eaf6907d8af029af639c4
parentc874dc6d6b892a7697c0c83a070a5b0a564be55f
vswitchd: Fix use of uninitialized variable in bridge_pick_local_hw_addr().

When a port's MAC is explicitly specified in the config file, we did not
initialize 'iface' and therefore later we could dereference a wild pointer.
This commit fixes the problem.
vswitchd/bridge.c