diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2020-11-20 04:06:51 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2020-11-30 15:36:10 +0100 |
commit | d31369905822311828832c13f7f5a2dbe116f965 (patch) | |
tree | 047f630fce5ea2129faf26c4885cb89627ec4772 /ospf6d/ospf6_main.c | |
parent | ospf6: fix crash on shutdown (diff) | |
download | frr-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.c | 5 |
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(); |