mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
lib: fix segfault on exit caused by interface removal
Add missing bits to properly unlink interface in the if_unlink_per_ns() function. In the long term we should convert if_table to use a more convenient data structure like a red-black tree instead of a routing table. Fixes issue #398. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
40d3ecc35c
commit
ef04b19249
@ -190,6 +190,7 @@ if_unlink_per_ns (struct interface *ifp)
|
|||||||
{
|
{
|
||||||
ifp->node->info = NULL;
|
ifp->node->info = NULL;
|
||||||
route_unlock_node(ifp->node);
|
route_unlock_node(ifp->node);
|
||||||
|
ifp->node = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Look up an interface by identifier within a NS */
|
/* Look up an interface by identifier within a NS */
|
||||||
|
Loading…
Reference in New Issue
Block a user