From: Vipin Kumar <[email protected]>

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 <[email protected]>
Reviewed-by: Daniel Walton <[email protected]>
---
 ospf6d/ospf6d.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 3e00d86..c929dff 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)
-- 
1.9.1


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to