summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authornickcooper-zhangtonghao <nic@opencloud.tech>2017-03-03 01:37:21 -0800
committerBen Pfaff <blp@ovn.org>2017-03-03 11:33:22 -0800
commitb077575ee509d72dfa2f88224778cb7ad7ef65a9 (patch)
treeb9cae6830a13b4e0209e200baaf9d435e32f95cb /ofproto
parent4fbbf8624868810442f8af28a18118b5ed58ffcf (diff)
downloadopenvswitch-b077575ee509d72dfa2f88224778cb7ad7ef65a9.tar.gz
mcast-snooping: Avoid segfault for vswitchd.
The ports which are attached mrouters or hosts, were destroyed by users via ovs-vsctl commands. Currently the vswitch will segfault if users use "ovs-appctl mdb/show" to show mdb info. This patch avoids a segfault. Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 366b7a267..1e1b10724 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -2756,6 +2756,7 @@ bundle_destroy(struct ofbundle *bundle)
}
bundle_flush_macs(bundle, true);
+ mcast_snooping_flush_bundle(ofproto->ms, bundle);
hmap_remove(&ofproto->bundles, &bundle->hmap_node);
free(bundle->name);
free(bundle->trunks);