]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: remove bogus check 9903/head
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 11 Oct 2021 21:29:54 +0000 (18:29 -0300)
committermergify-bot <noreply@mergify.io>
Tue, 26 Oct 2021 15:07:36 +0000 (15:07 +0000)
commit092e87d296cf80c9c7b1a2bb75f6f00aa8ee89c5
treef385b9bdf1eecc004150d3d5fd0e33c24fa167c6
parent7ffcba2b981b0cd903e3ac14c408ada7a26b2236
bgpd: remove bogus check

`bgp` pointer always exists and is used before this function call.

Calling `free` in `json` in this context will also cause a
use-after-free crash.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit 21e33c958d6258943796a04b9ac29838a7b41283)
bgpd/bgp_route.c