]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use a separate field for tracking the timer event's position in the ordered list
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 27 Mar 2025 19:15:14 +0000 (13:15 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Mar 2025 04:19:00 +0000 (22:19 -0600)
src/lib/util/timer.c

index f7e2349a58ddb18735a43ad76be28f8f3a7c2963..5ce3362ecdccaea377166ccf279e523b5db4d4ec 100644 (file)
@@ -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;