mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-06 17:58:01 +00:00
BUG/MINOR: rules: Fix check_capture() function to use the right rule arguments
The function checking captures defined in tcp-request content ruleset didn't use the right rule arguments. "arg.trk_ctr" was used instead of "arg.cap". This patch must be backported as far as 2.2.
This commit is contained in:
parent
5796228aba
commit
643f1b7bef
@ -124,7 +124,7 @@ int check_trk_action(struct act_rule *rule, struct proxy *px, char **err)
|
|||||||
int check_capture(struct act_rule *rule, struct proxy *px, char **err)
|
int check_capture(struct act_rule *rule, struct proxy *px, char **err)
|
||||||
{
|
{
|
||||||
if (rule->from == ACT_F_TCP_REQ_CNT && (px->cap & PR_CAP_FE) && !px->tcp_req.inspect_delay &&
|
if (rule->from == ACT_F_TCP_REQ_CNT && (px->cap & PR_CAP_FE) && !px->tcp_req.inspect_delay &&
|
||||||
!(rule->arg.trk_ctr.expr->fetch->val & SMP_VAL_FE_SES_ACC)) {
|
!(rule->arg.cap.expr->fetch->val & SMP_VAL_FE_SES_ACC)) {
|
||||||
ha_warning("%s '%s' : a 'tcp-request capture' rule explicitly depending on request"
|
ha_warning("%s '%s' : a 'tcp-request capture' rule explicitly depending on request"
|
||||||
" contents without any 'tcp-request inspect-delay' setting."
|
" contents without any 'tcp-request inspect-delay' setting."
|
||||||
" This means that this rule will randomly find its contents. This can be fixed by"
|
" This means that this rule will randomly find its contents. This can be fixed by"
|
||||||
|
Loading…
Reference in New Issue
Block a user