]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Prevent use after free 14276/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 25 Aug 2023 14:43:56 +0000 (10:43 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 25 Aug 2023 14:43:56 +0000 (10:43 -0400)
commit5160672d99ad4f583376542f04c9e68d357f9f73
tree33cb1681f1f08775018425a43187c7c50ef25431
parentd4a9b103b7e1af87643fc9542ca9dff6da967c37
bgpd: Prevent use after free

When bgp_stop finishes and it deletes the peer it is sending
back a return code stating that the peer was deleted, but
the code was operating like it was not deleted and continued
to access the data structure.  Fix.

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