]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't loop infinitely when cancelling requests
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 3 Nov 2021 18:47:12 +0000 (14:47 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 3 Nov 2021 18:47:12 +0000 (14:47 -0400)
src/lib/io/worker.c

index 6095a5b8079700ab67e15036132feef026b69ca4..8fecb7b735a963a94a29fbb759538f8b1ef556cf 100644 (file)
@@ -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);