ZMQII-37: SIGSEGV when polling on REQ socket

This commit is contained in:
Martin Sustrik 2010-01-12 08:14:55 +01:00
parent 4c613b39fa
commit bcd278a5a5

View File

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