From dd2395e1c63ff37ec82143e1a8d111e564c7c65e Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Wed, 4 Oct 2017 14:31:35 -0700 Subject: ospf6d: fix ospf6d crash during sigterm/shutdown During signterm (shutdown) ospf6_clean calls route_remove for brouter_table, during route_remove brouter_table remove hook function is invoked which in turns calls router_remove is any of the LSA has max age or cost is infinity, which leads to stack corruption trying to delete same route node. Similar to 'no router ospf6' or 'no area ..' command where lsdb is cleanedup then brouter route table clean up is called. Clean some of route trace to have route related fields. Ticket:CM-17932 Signed-off-by: Chirag Shah --- ospf6d/ospf6_main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ospf6d/ospf6_main.c') diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index e582737f94..76c20fa81f 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -125,7 +125,6 @@ static void sigint(void) static void sigterm(void) { zlog_notice("Terminating on signal SIGTERM"); - ospf6_clean(); ospf6_exit(0); } -- cgit v1.2.3