From 8e2e4740257354b39454fff64ca9cd242c3a069c Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Tue, 10 Oct 2023 17:58:39 +0100 Subject: [PATCH] HPCC-30463 Fix crash updating expiry for delayed packets Signed-off-by: Gavin Halliday --- roxie/ccd/ccdqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roxie/ccd/ccdqueue.cpp b/roxie/ccd/ccdqueue.cpp index be64ea37b09..6e7338daa04 100644 --- a/roxie/ccd/ccdqueue.cpp +++ b/roxie/ccd/ccdqueue.cpp @@ -2228,7 +2228,7 @@ class DelayedPacketQueue if (tail) { tail->next = newEntry; - for (DelayedPacketEntry *finger = tail; finger != nullptr; finger = finger->prev) + for (DelayedPacketEntry *finger = tail; finger != nullptr;) { if ((int) (finger->waitExpires - expires) <= 0) break;