route-table: Clear route_notifier after free.
authorJesse Gross <jesse@nicira.com>
Wed, 28 Sep 2011 16:52:07 +0000 (09:52 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 28 Sep 2011 18:28:37 +0000 (11:28 -0700)
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.

lib/route-table.c

index cd3b37f..58c1b60 100644 (file)
@@ -189,6 +189,7 @@ route_table_unregister(void)
 
     if (!register_count) {
         nln_notifier_destroy(route_notifier);
+        route_notifier = NULL;
         nln_destroy(nln);
         nln = NULL;