mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-21 10:05:04 +01:00
urrent pipe pointer in XREP out of range -- fixed.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
3ef7c747ac
commit
0c5b781e97
@ -103,6 +103,8 @@ void zmq::xrep_t::terminated (reader_t *pipe_)
|
||||
if ((inpipes_t::size_type) (it - inpipes.begin ()) < current_in)
|
||||
current_in--;
|
||||
inpipes.erase (it);
|
||||
if (current_in >= inpipes.size ())
|
||||
current_in = 0;
|
||||
if (terminating)
|
||||
unregister_term_ack ();
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user