From 2f0dc471d0a6eb61c525e8bff927cf19e835b87f Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Wed, 28 Sep 2011 09:52:07 -0700 Subject: [PATCH] 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. --- lib/route-table.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.43.0