From dfe866fa986629b5f04e3bb9d04b65240289d9eb Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 23 Oct 2025 10:48:38 +0200 Subject: [PATCH] BUG/MEDIUM: stick-tables: Don't loop if there's nothing left Before waking up the expiration task again at the end of it, make sure the next date is set. If there's nothing left to do, then task_exp will be TASK_ETERNITY and we then don't want to be waken up again. --- src/stick_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stick_table.c b/src/stick_table.c index 0d50a9d63..a328f45aa 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -1135,7 +1135,7 @@ struct task *process_tables_expire(struct task *task, void *context, unsigned in table_eb = tmpnode; } - if (tick_is_le(task_exp, now_ms)) { + if (tick_isset(task_exp) && tick_is_le(task_exp, now_ms)) { /* * More to do, we should wake up immediately. */