Merge pull request #16859 from mjstapp/bgp_cancel_once

bgpd: cancel events once in peer_free()
This commit is contained in:
Donatas Abraitis 2024-09-23 11:01:05 +02:00 committed by GitHub
commit fcc8738bb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1255,7 +1255,6 @@ static void peer_free(struct peer *peer)
EVENT_OFF(peer->t_revalidate_all[afi][safi]); EVENT_OFF(peer->t_revalidate_all[afi][safi]);
assert(!peer->connection->t_write); assert(!peer->connection->t_write);
assert(!peer->connection->t_read); assert(!peer->connection->t_read);
event_cancel_event_ready(bm->master, peer->connection);
/* Free connected nexthop, if present */ /* Free connected nexthop, if present */
if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE) if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE)