mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 12:21:24 +00:00
frrzmq: properly init args to zmq_getsockopt()
zmq read events get lost if zmq_getsockopt() silently fails in frrzmq_check_events(). Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
84abd23592
commit
81b8afcfb5
@ -338,6 +338,7 @@ void frrzmq_check_events(struct frrzmq_cb **cbp, struct cb_core *core,
|
||||
if (!cb || !cb->zmqsock)
|
||||
return;
|
||||
|
||||
len = sizeof(events);
|
||||
if (zmq_getsockopt(cb->zmqsock, ZMQ_EVENTS, &events, &len))
|
||||
return;
|
||||
if (events & event && core->thread && !core->cancelled) {
|
||||
|
Loading…
Reference in New Issue
Block a user