mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Merge pull request #2582 from bluca/test_poller_use_after_free
Problem: use-after-free in test_poller
This commit is contained in:
commit
92339a4d9d
@ -150,6 +150,10 @@ int main (void)
|
||||
assert (event.socket == server);
|
||||
assert (event.user_data == NULL);
|
||||
assert (event.events == ZMQ_POLLOUT);
|
||||
|
||||
// Stop polling server
|
||||
rc = zmq_poller_remove (poller, server);
|
||||
assert (rc == 0);
|
||||
#endif
|
||||
|
||||
// Destory sockets, poller and ctx
|
||||
|
Loading…
x
Reference in New Issue
Block a user