]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Hash release before we change the underlying hash assumptions
authorDonald Sharp <sharpd@nvidia.com>
Fri, 2 Dec 2022 17:51:34 +0000 (12:51 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 5 Dec 2022 14:11:22 +0000 (09:11 -0500)
commit56b7d690bb6e3cea976b7d0d2eeffb7de018b589
tree66fc0bc15944c6dabfe57d6359ab5cae768380be
parente235185279e84dd3e0feb48145ceb3d8a83c1323
bgpd: Hash release before we change the underlying hash assumptions

The bgp->peerhash is made up of the sockunion and the CONFIG_NODE
flag.  If the CONFIG_NODE flag is moved around or changed then
we get into a situation where both the doppelganger and the peer
actually hash to the exact same thing.  Leading to wrongful deletion
and pointers being used after freed.

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