From e7ce634f31eb5f2a1ca4906547ea16cfbb1ded5a Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 10 May 2022 09:25:59 +0300 Subject: [PATCH] bgpd: Reset bgp_notify.hard_reset on receive to avoid stale data Signed-off-by: Donatas Abraitis --- bgpd/bgp_packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 0d5e9eb6f2..9a1216a031 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2009,6 +2009,7 @@ static int bgp_notify_receive(struct peer *peer, bgp_size_t size) if (peer->notify.data) { XFREE(MTYPE_BGP_NOTIFICATION, peer->notify.data); peer->notify.length = 0; + peer->notify.hard_reset = false; } outer.code = stream_getc(peer->curr); -- 2.39.5