summaryrefslogtreecommitdiff
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2024-01-06 15:56:27 +0100
committerMartin Winter <mwinter@opensourcerouting.org>2024-01-06 15:57:12 +0100
commit0222f553fbfb4994582cb7380e35b44ef73283c3 (patch)
tree7f09562c1d76f8bafb7c083ea0007c5b7bb6b92d /bgpd/bgp_fsm.c
parent4d29c17407cdeb7ddb019045928d9341a0ca3625 (diff)
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 <mwinter@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c2
1 files changed, 1 insertions, 1 deletions
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,