]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: bgp_clear_adj_in|remove dest may be freed
authorDonald Sharp <sharpd@nvidia.com>
Sun, 10 Sep 2023 12:53:36 +0000 (08:53 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Sun, 10 Sep 2023 16:14:00 +0000 (12:14 -0400)
commitec8a02af45d038976f8423c17079a74db9e1fc63
tree26bdf85601ed91d80fba157b65f16ddeb96f7d19
parentbee4e27e78506638a32b0beac0bb1daad4d14a44
bgpd: bgp_clear_adj_in|remove dest may be freed

dest will not be freed due to lock but coverity does not know
that.  Give it a hint.  This change includes modifying bgp_dest_unlock_node
to return the dest pointer so that we can determine if we should
continue working on dest or not with an assert.  Since this
is lock based we should be ok.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_advertise.c
bgpd/bgp_advertise.h
bgpd/bgp_route.c
bgpd/bgp_table.c
bgpd/bgp_table.h