From: Jesse Gross Date: Wed, 28 Sep 2011 16:52:07 +0000 (-0700) Subject: route-table: Clear route_notifier after free. X-Git-Tag: v1.3.0~185 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2f0dc471d0a6eb61c525e8bff927cf19e835b87f;p=sliver-openvswitch.git route-table: Clear route_notifier after free. If the routing table is destroyed and re-created then it will trigger another assertion because route_notifier is not NULL, even though it has already been freed. --- diff --git a/lib/route-table.c b/lib/route-table.c index cd3b37f1c..58c1b6015 100644 --- a/lib/route-table.c +++ b/lib/route-table.c @@ -189,6 +189,7 @@ route_table_unregister(void) if (!register_count) { nln_notifier_destroy(route_notifier); + route_notifier = NULL; nln_destroy(nln); nln = NULL;