summaryrefslogtreecommitdiff
path: root/nhrpd
diff options
context:
space:
mode:
authordleroy <dleroy@labn.net>2024-04-29 09:40:21 -0700
committerDave LeRoy <dleroy@labn.net>2024-05-30 12:25:07 -0700
commita4ee9762734332697ba186ae7223da1eb0445cb2 (patch)
treefb4750fe00c14e96e6fb48107ada338faf5613b6 /nhrpd
parentfd8a2c400aa972f6a38db50a7a27cdb3714538e1 (diff)
nhrpd: fixes core dump on shutdown
When nhrpd is shutdown via nhrp_request_stop() the shutdown sequence was not handling the case where there are active shortcut routes installed. The zebra client and shortcut rib were being cleaned up before vrf_terminate() had an opportunity to delete the active routes. Signed-off-by: dleroy <dleroy@labn.net>
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/nhrp_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nhrpd/nhrp_main.c b/nhrpd/nhrp_main.c
index adb8be36d3..5d492249d3 100644
--- a/nhrpd/nhrp_main.c
+++ b/nhrpd/nhrp_main.c
@@ -83,13 +83,13 @@ static void nhrp_request_stop(void)
debugf(NHRP_DEBUG_COMMON, "Exiting...");
frr_early_fini();
- nhrp_shortcut_terminate();
+ vrf_terminate();
nhrp_nhs_terminate();
nhrp_zebra_terminate();
vici_terminate();
evmgr_terminate();
- vrf_terminate();
nhrp_vc_terminate();
+ nhrp_shortcut_terminate();
debugf(NHRP_DEBUG_COMMON, "Done.");