Skip to content

Commit

Permalink
mcast-snooping: Avoid segfault for vswitchd.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xpu22 authored and blp committed Mar 3, 2017
1 parent 4fbbf86 commit b077575
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofproto/ofproto-dpif.c
Expand Up @@ -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);
Expand Down

0 comments on commit b077575

Please sign in to comment.