Skip to content

Commit

Permalink
Merge pull request #13873 from FRRouting/mergify/bp/dev/9.0/pr-13870
Browse files Browse the repository at this point in the history
bgpd: Ensure peer data structure is accessed only when BGPD is not te… (backport #13870)
  • Loading branch information
ton31337 authored Jun 30, 2023
2 parents 2976374 + 5f689fa commit c9a420b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9a420b

Please sign in to comment.