summaryrefslogtreecommitdiffstats
path: root/zebra/main.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-11-01 14:08:24 +0100
committerChristian Hopps <chopps@labn.net>2023-12-28 19:17:24 +0100
commitd0f71a90da50da4869c0e13fcf869c4140da61fb (patch)
treed19f42f104178c3b7130cc8dbca9302d6dd34062 /zebra/main.c
parentzebra: fix oper-state walk bug (diff)
downloadfrr-d0f71a90da50da4869c0e13fcf869c4140da61fb.tar.xz
frr-d0f71a90da50da4869c0e13fcf869c4140da61fb.zip
zebra: fix cleanup of mgmt backend state
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c
index be3b22590..b0a5a2328 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -145,7 +145,9 @@ static void sigint(void)
zlog_notice("Terminating on signal");
+ nb_oper_cancel_all_walks();
mgmt_be_client_destroy(mgmt_be_client);
+ mgmt_be_client = NULL;
atomic_store_explicit(&zrouter.in_shutdown, true,
memory_order_relaxed);