From 3fd6abdd13b8f0a145381845a399b2fef11b887b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 18:03:53 -0700 Subject: [PATCH] Adding the initialization check in ospfv3_clean() This is to avoid a crash triggered by process termination when ospf6d daemon is running and 'router ospf6' config has not been done yet. Signed-off-by: Vipin Kumar Reviewed-by: Daniel Walton --- ospf6d/ospf6d.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index 032643e4dd..0f456b1a7c 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -1898,6 +1898,8 @@ ospf6_init (void) void ospf6_clean (void) { + if (!ospf6) + return; if (ospf6->route_table) ospf6_route_remove_all (ospf6->route_table); if (ospf6->brouter_table) -- 2.39.5