diff options
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r-- | src/socket_base.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 4cefb6f..abeddb9 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -619,7 +619,9 @@ zmq::session_t *zmq::socket_base_t::find_session (const blob_t &name_) session_t *session = it->second; // Prepare the session for subsequent attach command. - session->inc_seqnum (); + // Note the connect sessions have NULL pointers registered here. + if (session) + session->inc_seqnum (); sessions_sync.unlock (); return session; |