Signed-off-by: Ben Pfaff <[email protected]>
---
vswitchd/bridge.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 8ebfc66..805b784 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -1997,6 +1997,9 @@ find_local_hw_addr(const struct bridge *br, struct
eth_addr *ea,
}
}
+ /* A port always has at least one interface. */
+ ovs_assert(iface != NULL);
+
/* The local port doesn't count (since we're trying to choose its
* MAC address anyway). */
if (iface->ofp_port == OFPP_LOCAL) {
--
2.1.3
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev