mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-01 10:57:59 +01:00
Problem: test_security_zap occasionally segfaults
Solution: check if a session's _pipe has been allocated before using it, since as a consequence of creating the pipes after the handshake it's no longer guaranteed to be there. Fixes #3971
This commit is contained in:
parent
d78ecb8dc8
commit
350b4b34f4
@ -308,7 +308,8 @@ void zmq::session_base_t::read_activated (pipe_t *pipe_)
|
||||
}
|
||||
|
||||
if (unlikely (_engine == NULL)) {
|
||||
_pipe->check_read ();
|
||||
if (_pipe)
|
||||
_pipe->check_read ();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user