BUG/MEDIUM: sessions: Don't use t->state.

In session_expire_embryonic(), don't use t->state, use the "state" argument
instead, as t->state has been cleaned before we're being called.
This commit is contained in:
Olivier Houchard 2018-08-16 19:03:50 +02:00 committed by Willy Tarreau
parent d8b7a4701d
commit fde2a09a15

View File

@ -388,7 +388,7 @@ static struct task *session_expire_embryonic(struct task *t, void *context, unsi
{
struct session *sess = context;
if (!(t->state & TASK_WOKEN_TIMER))
if (!(state & TASK_WOKEN_TIMER))
return t;
session_kill_embryonic(sess);