diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2022-03-05 09:14:03 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-05 09:14:03 -0600 |
| commit | 47a5de9c038c17038cef61786fd1216d33ee0f66 (patch) | |
| tree | a182c46b9649f84e815291fdd8022d6895a67937 | |
| parent | a267f52c3aeecd51ec2b2db5c03115110a1d2516 (diff) | |
| parent | b4fc876a327a89dc212efa48a04b76e53263722f (diff) | |
Merge pull request #10736 from ton31337/fix/backport_rpki_to_8.2
bgpd: [8.2] RPKI fixes backport
| -rw-r--r-- | bgpd/bgp_rpki.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index f1ee1c9ad7..0a51269d9b 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -369,7 +369,7 @@ static int bgpd_sync_callback(struct thread *thread) thread_add_read(bm->master, bgpd_sync_callback, NULL, socket, &t_rpki); if (atomic_load_explicit(&rtr_update_overflow, memory_order_seq_cst)) { - while (read(socket, &rec, sizeof(rec) != -1)) + while (read(socket, &rec, sizeof(struct pfx_record)) != -1) ; atomic_store_explicit(&rtr_update_overflow, 0, @@ -378,8 +378,8 @@ static int bgpd_sync_callback(struct thread *thread) return 0; } - retval = read(socket, &rec, sizeof(rec)); - if (retval != sizeof(rec)) { + retval = read(socket, &rec, sizeof(struct pfx_record)); + if (retval != sizeof(struct pfx_record)) { RPKI_DEBUG("Could not read from socket"); return retval; } |
