]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix cleanup of mgmt backend state
authorChristian Hopps <chopps@labn.net>
Wed, 1 Nov 2023 13:08:24 +0000 (09:08 -0400)
committerChristian Hopps <chopps@labn.net>
Thu, 28 Dec 2023 18:17:24 +0000 (18:17 +0000)
Signed-off-by: Christian Hopps <chopps@labn.net>
zebra/main.c

index be3b22590e7f801d2f68a9472c59ca39b40b8d19..b0a5a232842bb2909cec570ca5f2a445b935583e 100644 (file)
@@ -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);