]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_nht.c
bgpd: BGP fails to free the nexthop node
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>
Sat, 8 Oct 2022 00:07:46 +0000 (17:07 -0700)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 10 Dec 2022 12:40:32 +0000 (07:40 -0500)
commit51f3216bee15473533963c3e9b7c37061bdb0da9
treee1f1b094114c85efa25a7da36c10c28c467b5d65
parent58552d28fa046f8c64c97e16be0966f4d015e86d
bgpd: BGP fails to free the nexthop node

In case of BGP unnumbered, BGP fails to free the nexthop
node for peer if the interface is shutdown before
unconfiguring/deleting the BGP neighbor.

This is because, when the interface is shutdown,
peer's LL neighbor address will be cleared. Therefore,
during neighbor deletion, since the peer's neighbor
address is not available, BGP will skip freeing the
nexthop node of this peer. This results in a stale
nexthop node that points to a peer that's already
been freed.

Ticket: 3191547
Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
bgpd/bgp_nht.c