]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix crash when terminating inactive VRFs 9943/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 2 Nov 2021 21:29:19 +0000 (00:29 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 3 Nov 2021 09:53:02 +0000 (12:53 +0300)
commitd2dbaf3b5e57051b56efd1a38d69f552a5d56c41
tree73661b5739b25536dc012ded49f5b33e7cff6712
parent9acc98c865bfc3aae2748ac5e922918dd70885d8
lib: fix crash when terminating inactive VRFs

If the VRF is not enabled, if_terminate deletes the VRF after the last
interface is removed from it. Therefore daemons crash on the subsequent
call to vrf_delete. We should call vrf_delete only for enabled VRFs.

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