From 0222f553fbfb4994582cb7380e35b44ef73283c3 Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Sat, 6 Jan 2024 15:56:27 +0100 Subject: [PATCH] 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 --- bgpd/bgp_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 3959a472799e..ad872aeda32d 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,