]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: sessions: Don't use t->state.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 16 Aug 2018 17:03:50 +0000 (19:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Aug 2018 17:25:56 +0000 (19:25 +0200)
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.

src/session.c

index 1d66b739f0b29ace54015a9613cb2daa8ee5d27f..d7d8544c7c96187abb30561a8c290bed7a7ef1cb 100644 (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);