From 45f80de734db1ecc677096f743d0f8cacdb6528d Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 24 Jul 2024 15:30:43 +0300 Subject: [PATCH] bgpd: Pass a connection struct directly for EVENT_OFF() Signed-off-by: Donatas Abraitis --- 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 76624fee9e..b67cf3b874 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -1482,7 +1482,7 @@ enum bgp_fsm_state_progress bgp_stop(struct peer_connection *connection) EVENT_OFF(connection->t_connect); EVENT_OFF(connection->t_holdtime); EVENT_OFF(connection->t_routeadv); - EVENT_OFF(peer->connection->t_delayopen); + EVENT_OFF(connection->t_delayopen); /* Clear input and output buffer. */ frr_with_mutex (&connection->io_mtx) {