Merge pull request #13873 from FRRouting/mergify/bp/dev/9.0/pr-13870

bgpd: Ensure peer data structure is accessed only when BGPD is not te… (backport #13870)
This commit is contained in:
Donatas Abraitis 2023-06-30 11:01:43 +03:00 committed by GitHub
commit c9a420b9c1
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;