]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: When creating peer convey if it is a CONFIG_NODE or not
authorDonald Sharp <sharpd@nvidia.com>
Fri, 2 Dec 2022 17:59:30 +0000 (12:59 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 5 Dec 2022 14:11:22 +0000 (09:11 -0500)
commit534db980a20763a7c66ab7b0e2451d615af01396
treeb1a71b83d9aa5da57dcefa21628f9b498d50988e
parent56b7d690bb6e3cea976b7d0d2eeffb7de018b589
bgpd: When creating peer convey if it is a CONFIG_NODE or not

When actually creating a peer in BGP, tell the creation if
it is a config node or not.  There were cases where the
CONFIG_NODE was being set *after* being placed into
the bgp->peerhash, thus causing collisions between the
doppelganger and the peer and eventually use after free's.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_network.c
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h