From: Arran Cudbard-Bell Date: Thu, 27 Mar 2025 19:15:14 +0000 (-0600) Subject: Use a separate field for tracking the timer event's position in the ordered list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=330f4762adf5a8a22bc4098e656d314bebc143e7;p=thirdparty%2Ffreeradius-server.git Use a separate field for tracking the timer event's position in the ordered list --- diff --git a/src/lib/util/timer.c b/src/lib/util/timer.c index f7e2349a58d..5ce3362ecdc 100644 --- a/src/lib/util/timer.c +++ b/src/lib/util/timer.c @@ -1059,7 +1059,7 @@ fr_timer_list_t *fr_timer_list_ordered_alloc(TALLOC_CTX *ctx, fr_timer_list_t *p if (unlikely((tl = timer_list_alloc(ctx, parent)) == NULL)) return NULL; - timer_talloc_init(&tl->ordered); + fr_dlist_talloc_init((fr_dlist_head_t *)&tl->ordered, fr_timer_t, ordered_entry); tl->type = TIMER_LIST_TYPE_ORDERED; return tl;