mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
Problem: zmq_poller_wait doesn't check *event arg
Solution: use zmq_assert to ensure it's not a nullpointer
This commit is contained in:
parent
32f2b784b9
commit
b5dc794202
@ -1209,6 +1209,8 @@ int zmq_poller_wait (void *poller_, zmq_poller_event_t *event, long timeout_)
|
||||
return -1;
|
||||
}
|
||||
|
||||
zmq_assert (event != NULL);
|
||||
|
||||
zmq::socket_poller_t::event_t e;
|
||||
memset (&e, 0, sizeof (e));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user