From: Philippe Guibert Date: Mon, 20 May 2019 12:52:44 +0000 (+0200) Subject: bgpd: upon peer unconfiguration, remove bfd context if any X-Git-Tag: base_7.2~309^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e8ba52931a06de507db932aefb73187f7499f8ab;p=matthieu%2Ffrr.git bgpd: upon peer unconfiguration, remove bfd context if any upon peer unconfiguration, remove bfd context if necessary. Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 2a7663f195..2e648af1bb 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -2232,6 +2232,8 @@ int peer_delete(struct peer *peer) SET_FLAG(peer->flags, PEER_FLAG_DELETE); + bgp_bfd_deregister_peer(peer); + /* If this peer belongs to peer group, clear up the relationship. */ if (peer->group) {