Merge pull request #13870 from iqras23/bm_terminate

bgpd: Ensure peer data structure is accessed only when BGPD is not te…
This commit is contained in:
Donatas Abraitis 2023-06-28 15:20:07 +03:00 committed by GitHub
commit 6ca6ae3be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ static void bgp_process_reads(struct event *thread)
peer = EVENT_ARG(thread); peer = EVENT_ARG(thread);
if (peer->fd < 0 || bm->terminating) if (bm->terminating || peer->fd < 0)
return; return;
struct frr_pthread *fpt = bgp_pth_io; struct frr_pthread *fpt = bgp_pth_io;