[ovs-dev] [PATCH] route-table: Clear route_notifier after free.

Jesse Gross jesse at nicira.com
Wed Sep 28 16:59:16 UTC 2011


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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/route-table.c b/lib/route-table.c
index cd3b37f..58c1b60 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;
 
-- 
1.7.4.1




More information about the dev mailing list