summaryrefslogtreecommitdiff
path: root/zebra/zebra_netns_notify.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2021-11-04 20:29:23 -0400
committerGitHub <noreply@github.com>2021-11-04 20:29:23 -0400
commit95d2bed34b8037d33cbf23fd1bf215f98c4fb9d4 (patch)
tree2d36ec05462362f135a9143c206fe10527df7825 /zebra/zebra_netns_notify.c
parentc60f71713ccfd4c98304d7f3ecf7b963fab251f9 (diff)
parentd2dbaf3b5e57051b56efd1a38d69f552a5d56c41 (diff)
Merge pull request #9943 from idryzhov/crash-fixes
a couple of crash fixes after recent interface/vrf rework
Diffstat (limited to 'zebra/zebra_netns_notify.c')
-rw-r--r--zebra/zebra_netns_notify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c
index 0d260ad639..5b9539904f 100644
--- a/zebra/zebra_netns_notify.c
+++ b/zebra/zebra_netns_notify.c
@@ -165,6 +165,7 @@ static int zebra_ns_delete(char *name)
/* the deletion order is the same
* as the one used when siging signal is received
*/
+ vrf->ns_ctxt = NULL;
vrf_delete(vrf);
if (ns)
ns_delete(ns);