mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
ZMQII-43: Race condition when writing to pipe
This commit is contained in:
parent
6a46ca75e5
commit
f0757c003e
@ -78,7 +78,7 @@ bool zmq::session_t::read (::zmq_msg_t *msg_)
|
||||
|
||||
bool zmq::session_t::write (::zmq_msg_t *msg_)
|
||||
{
|
||||
if (out_pipe->write (msg_)) {
|
||||
if (out_pipe && out_pipe->write (msg_)) {
|
||||
zmq_msg_init (msg_);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user