Commit bcd278a5 authored by Martin Sustrik's avatar Martin Sustrik

ZMQII-37: SIGSEGV when polling on REQ socket

parent 4c613b39
......@@ -197,7 +197,7 @@ int zmq::req_t::xrecv (zmq_msg_t *msg_, int flags_)
bool zmq::req_t::xhas_in ()
{
if (reply_pipe->check_read ())
if (reply_pipe && reply_pipe->check_read ())
return waiting_for_reply;
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment