From: Martin Winter Date: Sat, 6 Jan 2024 14:56:27 +0000 (+0100) Subject: Revert "bgpd: On shutdown do not create a workqueue for the self peer" X-Git-Tag: base_10.0~147^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0222f553fbfb4994582cb7380e35b44ef73283c3;p=matthieu%2Ffrr.git Revert "bgpd: On shutdown do not create a workqueue for the self peer" This reverts commit 7bf3c2fb195f34382e1bf00ed2c91310a1dc9f86. Commit reverted as it introduces a memoery leak during the tests Signed-off-by: Martin Winter --- diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 3959a47279..ad872aeda3 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -1239,7 +1239,7 @@ void bgp_fsm_change_status(struct peer_connection *connection, /* Transition into Clearing or Deleted must /always/ clear all routes.. * (and must do so before actually changing into Deleted.. */ - if (status >= Clearing && peer != bgp->peer_self) { + if (status >= Clearing) { bgp_clear_route_all(peer); /* If no route was queued for the clear-node processing,