projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b7a47
)
BUG/MEDIUM: sessions: Don't use t->state.
author
Olivier Houchard
<ohouchard@haproxy.com>
Thu, 16 Aug 2018 17:03:50 +0000
(19:03 +0200)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
1d66b73
..
d7d8544
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-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);