summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2022-12-19 18:58:49 +0100
committerGitHub <noreply@github.com>2022-12-19 18:58:49 +0100
commit3e44212f9f6310ba7124607e6fedee39e7e25365 (patch)
treee72190535243dfc55534850b26033ee94423e0be /zebra
parentMerge pull request #12534 from donaldsharp/notice_missed (diff)
parentzebra: Ensure memory is not freed that dplane depends on in shutdown (diff)
downloadfrr-3e44212f9f6310ba7124607e6fedee39e7e25365.tar.xz
frr-3e44212f9f6310ba7124607e6fedee39e7e25365.zip
Merge pull request #12538 from donaldsharp/zebra_crash_in_shutdown
zebra: Ensure memory is not freed that dplane depends on in shutdown
Diffstat (limited to 'zebra')
-rw-r--r--zebra/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 3de97943f..e38f9a85e 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -221,12 +221,12 @@ void zebra_finalize(struct thread *dummy)
{
zlog_info("Zebra final shutdown");
- /* Final shutdown of ns resources */
- ns_walk_func(zebra_ns_final_shutdown, NULL, NULL);
-
/* Stop dplane thread and finish any cleanup */
zebra_dplane_shutdown();
+ /* Final shutdown of ns resources */
+ ns_walk_func(zebra_ns_final_shutdown, NULL, NULL);
+
zebra_router_terminate();
ns_terminate();