mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-25 21:37:29 +00:00
bgpd: In bgp_clear_route_table ensure dest is still usable.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
c955a3cbec
commit
1195c44f4b
@ -5690,9 +5690,10 @@ static void bgp_clear_route_table(struct peer *peer, afi_t afi, safi_t safi,
|
||||
if (pi->peer != peer)
|
||||
continue;
|
||||
|
||||
if (force)
|
||||
bgp_path_info_reap(dest, pi);
|
||||
else {
|
||||
if (force) {
|
||||
dest = bgp_path_info_reap(dest, pi);
|
||||
assert(dest);
|
||||
} else {
|
||||
struct bgp_clear_node_queue *cnq;
|
||||
|
||||
/* both unlocked in bgp_clear_node_queue_del */
|
||||
|
Loading…
Reference in New Issue
Block a user