diff options
author | Jesse Gross <jesse@nicira.com> | 2011-09-28 09:52:07 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-09-28 11:28:37 -0700 |
commit | 2f0dc471d0a6eb61c525e8bff927cf19e835b87f (patch) | |
tree | 27fc4a949c0c4d4d84c8b2fd3b28a0c89093747b /lib/route-table.c | |
parent | 6ff686f2bc2afcfb0a9ad9793d834979dc9870d6 (diff) | |
download | openvswitch-2f0dc471d0a6eb61c525e8bff927cf19e835b87f.tar.gz |
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.
Diffstat (limited to 'lib/route-table.c')
-rw-r--r-- | lib/route-table.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |