From 0c5b781e97f2bea42925495a5505c51e769fba7f Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 6 May 2011 15:51:56 +0200 Subject: urrent pipe pointer in XREP out of range -- fixed. Signed-off-by: Martin Sustrik --- src/xrep.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xrep.cpp') diff --git a/src/xrep.cpp b/src/xrep.cpp index 15fac8d..77481c3 100644 --- a/src/xrep.cpp +++ b/src/xrep.cpp @@ -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; -- cgit v1.2.3