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:
Patrik Wenger 2016-04-12 20:10:54 +02:00
parent 32f2b784b9
commit b5dc794202

View File

@ -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));