summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-04-28 15:56:10 -0400
committerGitHub <noreply@github.com>2017-04-28 15:56:10 -0400
commitfc25a6680d63b78f9c35d6f97908a74734f04df7 (patch)
tree17aa4b80d85a1fa62e3e0777f029d0363fcee8b0
parent40d3ecc35c73821841b6890322b2e274e2c520cd (diff)
parentef04b19249ec3211614784c3c8791bfabe7d640c (diff)
Merge pull request #427 from opensourcerouting/zebra-ifdel-fix
lib: fix segfault on exit caused by interface removal
-rw-r--r--zebra/interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 1d015e8588..444f3bd587 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -190,6 +190,7 @@ if_unlink_per_ns (struct interface *ifp)
{
ifp->node->info = NULL;
route_unlock_node(ifp->node);
+ ifp->node = NULL;
}
/* Look up an interface by identifier within a NS */