]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Revert "bgpd: On shutdown do not create a workqueue for the self peer"
authorMartin Winter <mwinter@opensourcerouting.org>
Sat, 6 Jan 2024 14:56:27 +0000 (15:56 +0100)
committerMartin Winter <mwinter@opensourcerouting.org>
Sat, 6 Jan 2024 14:57:12 +0000 (15:57 +0100)
This reverts commit 7bf3c2fb195f34382e1bf00ed2c91310a1dc9f86.
Commit reverted as it introduces a memoery leak during the tests

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
bgpd/bgp_fsm.c

index 3959a472799ef84ef277d90db7732cc13f11c7ee..ad872aeda32dadebc4130e05301c16795446e962 100644 (file)
@@ -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,