Commit a8373131da for frr
commit a8373131dacd5bf27f4d8b6d4f32b61803e3bfb8
Author: Donald Sharp <sharpd@nvidia.com>
Date: Thu Apr 30 15:52:08 2026 -0400
bgpd: bgp_writes_off is clearing the peer->connection flag
bgp_writes_off is not clearing the correct flag that it
is passed in with.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 7fad905bec..965cf8427c 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -62,13 +62,12 @@ void bgp_writes_on(struct peer_connection *connection)
void bgp_writes_off(struct peer_connection *connection)
{
- struct peer *peer = connection->peer;
struct frr_pthread *fpt = bgp_pth_io;
struct stream *s;
assert(fpt->running);
- UNSET_FLAG(peer->connection->thread_flags, PEER_THREAD_WRITES_ON);
+ UNSET_FLAG(connection->thread_flags, PEER_THREAD_WRITES_ON);
/* Clear out the write fifo */
frr_with_mutex (&connection->io_mtx) {