BUG/MINOR: vars: use sess and not s->sess in action_store()

This causes the stream to be dereferenced when not needed. It will
cause trouble when variables are used outside of a stream.
This commit is contained in:
Willy Tarreau 2016-10-21 17:13:24 +02:00
parent 0c63053b30
commit 108a8fd8be

View File

@ -507,7 +507,7 @@ static enum act_return action_store(struct act_rule *rule, struct proxy *px,
/* Process the expression. */ /* Process the expression. */
memset(&smp, 0, sizeof(smp)); memset(&smp, 0, sizeof(smp));
if (!sample_process(px, s->sess, s, dir|SMP_OPT_FINAL, if (!sample_process(px, sess, s, dir|SMP_OPT_FINAL,
rule->arg.vars.expr, &smp)) rule->arg.vars.expr, &smp))
return ACT_RET_CONT; return ACT_RET_CONT;