summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_main.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-11-20 04:06:51 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2020-11-30 15:36:10 +0100
commitd31369905822311828832c13f7f5a2dbe116f965 (patch)
tree047f630fce5ea2129faf26c4885cb89627ec4772 /ospf6d/ospf6_main.c
parentospf6: fix crash on shutdown (diff)
downloadfrr-d31369905822311828832c13f7f5a2dbe116f965.tar.xz
frr-d31369905822311828832c13f7f5a2dbe116f965.zip
ospf6: move serv_close to ospf6_delete
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospf6d/ospf6_main.c')
-rw-r--r--ospf6d/ospf6_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c
index 4ed6e2a60..69424f4b4 100644
--- a/ospf6d/ospf6_main.c
+++ b/ospf6d/ospf6_main.c
@@ -88,12 +88,11 @@ static void __attribute__((noreturn)) ospf6_exit(int status)
for (ALL_LIST_ELEMENTS(om6->ospf6, node, nnode, ospf6)) {
vrf = vrf_lookup_by_id(ospf6->vrf_id);
- ospf6_serv_close(&ospf6->fd);
+ ospf6_delete(ospf6);
+ ospf6 = NULL;
FOR_ALL_INTERFACES (vrf, ifp)
if (ifp->info != NULL)
ospf6_interface_delete(ifp->info);
- ospf6_delete(ospf6);
- ospf6 = NULL;
}
bfd_gbl_exit();