mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 20:22:36 +00:00
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:
commit
6ca6ae3be4
@ -225,7 +225,7 @@ static void bgp_process_reads(struct event *thread)
|
||||
|
||||
peer = EVENT_ARG(thread);
|
||||
|
||||
if (peer->fd < 0 || bm->terminating)
|
||||
if (bm->terminating || peer->fd < 0)
|
||||
return;
|
||||
|
||||
struct frr_pthread *fpt = bgp_pth_io;
|
||||
|
Loading…
Reference in New Issue
Block a user