This commit is contained in:
lsang6WIND 2025-04-29 16:22:44 +00:00 committed by GitHub
commit aafcfdd4e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1267,7 +1267,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->established || peer != bgp->peer_self)) {
if (status >= Clearing && (peer->established || peer == bgp->peer_self)) {
bgp_clear_route_all(peer);
/* If no route was queued for the clear-node processing,