From: Arran Cudbard-Bell Date: Wed, 3 Nov 2021 18:47:12 +0000 (-0400) Subject: Don't loop infinitely when cancelling requests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65fbff1a7621a2b18231e1cbedc8e700128cc930;p=thirdparty%2Ffreeradius-server.git Don't loop infinitely when cancelling requests --- diff --git a/src/lib/io/worker.c b/src/lib/io/worker.c index 6095a5b8079..8fecb7b735a 100644 --- a/src/lib/io/worker.c +++ b/src/lib/io/worker.c @@ -405,7 +405,7 @@ static void worker_max_request_time(UNUSED fr_event_list_t *el, UNUSED fr_time_t * Look at the oldest requests, and see if they need to * be deleted. */ - while ((request = fr_minmax_heap_max_peek(worker->time_order)) != NULL) { + while ((request = fr_minmax_heap_max_pop(worker->time_order)) != NULL) { fr_time_t cleanup; REQUEST_VERIFY(request);