]> git.proxmox.com Git - mirror_frr.git/commitdiff
bfdd: upon vrf disable, unlink bfd session with vrf
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 10 Oct 2019 07:07:21 +0000 (09:07 +0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 14 Oct 2019 17:32:16 +0000 (14:32 -0300)
bfd session has a vrf pointer that needs to be reset, when vrf is
disabled.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bfdd/bfd.c

index 89a097fed8660c595223ecd7b7e44a201daa4444..aa6aba962ff26201992dd563473c795cca73b48b 100644 (file)
@@ -216,6 +216,7 @@ void bfd_session_disable(struct bfd_session *bs)
        bfd_echo_recvtimer_delete(bs);
        bfd_xmttimer_delete(bs);
        bfd_echo_xmttimer_delete(bs);
+       bs->vrf = NULL;
 }
 
 static uint32_t ptm_bfd_gen_ID(void)