From 211dc088a6fc0b96f4f7e71813a117e5a5ae0caa Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 18 Oct 2007 08:28:37 +0000 Subject: Fix for QPID-644 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585899 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SemanticState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/SemanticState.cpp') diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index d605e92b72..f47726bcf8 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -355,7 +355,7 @@ void SemanticState::ack(DeliveryId first, DeliveryId last, bool cumulative) if (cumulative || first != last) { //need to find end (position it just after the last record in range) end = find_if(start, unacked.end(), bind2nd(mem_fun_ref(&DeliveryRecord::after), last)); - } else { + } else if (start != unacked.end()) { //just acked single element (move end past it) ++end; } -- cgit v1.2.1