diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-06-30 11:01:43 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-30 11:01:43 +0300 |
| commit | c9a420b9c1ae7ddb9a2f04ea7ca09617dcbb888d (patch) | |
| tree | e4616a2142533ab012246c8b17ab12cc1b38b671 | |
| parent | 297637414dca9f7299f764af60d7f6d4aefce9a6 (diff) | |
| parent | 5f689fa4d1ed932b0a595a1a8dbe760c87df14a9 (diff) | |
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)
| -rw-r--r-- | bgpd/bgp_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c index 650adc1c9a..e9178fd8fc 100644 --- a/bgpd/bgp_io.c +++ b/bgpd/bgp_io.c @@ -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; |
