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.
This commit is contained in:
Olivier Houchard 2025-10-23 10:48:38 +02:00 committed by Olivier Houchard
parent 871c80505c
commit dfe866fa98

View File

@ -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.
*/