Commit 0c5b781e authored by Martin Sustrik's avatar Martin Sustrik

urrent pipe pointer in XREP out of range -- fixed.

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 3ef7c747
...@@ -103,6 +103,8 @@ void zmq::xrep_t::terminated (reader_t *pipe_) ...@@ -103,6 +103,8 @@ void zmq::xrep_t::terminated (reader_t *pipe_)
if ((inpipes_t::size_type) (it - inpipes.begin ()) < current_in) if ((inpipes_t::size_type) (it - inpipes.begin ()) < current_in)
current_in--; current_in--;
inpipes.erase (it); inpipes.erase (it);
if (current_in >= inpipes.size ())
current_in = 0;
if (terminating) if (terminating)
unregister_term_ack (); unregister_term_ack ();
return; return;
......
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