]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: backpressure - Avoid use after free
authorRajasekar Raja <rajasekarr@nvidia.com>
Mon, 22 Jul 2024 17:13:19 +0000 (10:13 -0700)
committerRajasekar Raja <rajasekarr@nvidia.com>
Mon, 22 Jul 2024 17:16:16 +0000 (10:16 -0700)
commit40965e599975b019bbe6f4b1dfb3ff22d8980876
tree0661c926b4beaafe9fc41de436ede21a9414b1dd
parent703beba119dc7f583bd03f9196cd088124c2d1c9
bgpd: backpressure - Avoid use after free

Coverity complains there is a use after free (1598495 and 1598496)
At this point, most likely dest->refcount cannot go 1 and free up
the dest, but there might be some code path where this can happen.

Fixing this with a simple order change (no harm fix).

Ticket :#4001204

Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
bgpd/bgp_evpn.c
bgpd/bgpd.c