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 <vipin@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2015-05-19 18:03:53 -07:00
parent 0f23bb679b
commit 3fd6abdd13

View File

@ -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)