]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix stale pointer when netns is deleted
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 2 Nov 2021 20:54:43 +0000 (23:54 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 3 Nov 2021 08:11:15 +0000 (11:11 +0300)
commit9acc98c865bfc3aae2748ac5e922918dd70885d8
treeacb412a6db0c3c1e26fe6f4326ea7f654bdfcca2
parent0051effcb151b803b4a8caa5d2f958485574dd24
zebra: fix stale pointer when netns is deleted

When the netns is deleted, we should always clear the vrf->ns_ctxt
pointer. Currently, it is not cleared when there are interfaces in the
netns at the time of deletion.

If the netns is re-created, zebra crashes because it tries to use the
stale pointer.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/vrf.c
zebra/zebra_netns_notify.c