mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
[BUG] conf: add tcp-request content rules to the correct list
Due to the change in commit 68c03, the tcp-request content rules were unfortunately being added to the request rules.
This commit is contained in:
parent
07e9e64a34
commit
fb024dc1c9
@ -919,6 +919,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rule = (struct tcp_rule *)calloc(1, sizeof(*rule));
|
rule = (struct tcp_rule *)calloc(1, sizeof(*rule));
|
||||||
|
LIST_INIT(&rule->list);
|
||||||
arg = 1;
|
arg = 1;
|
||||||
|
|
||||||
if (strcmp(args[1], "content") == 0) {
|
if (strcmp(args[1], "content") == 0) {
|
||||||
@ -938,6 +939,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
|||||||
name);
|
name);
|
||||||
warn++;
|
warn++;
|
||||||
}
|
}
|
||||||
|
LIST_ADDQ(&curpx->tcp_req.inspect_rules, &rule->list);
|
||||||
}
|
}
|
||||||
else if (strcmp(args[1], "connection") == 0) {
|
else if (strcmp(args[1], "connection") == 0) {
|
||||||
arg++;
|
arg++;
|
||||||
@ -971,6 +973,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
|||||||
name);
|
name);
|
||||||
warn++;
|
warn++;
|
||||||
}
|
}
|
||||||
|
LIST_ADDQ(&curpx->tcp_req.l4_rules, &rule->list);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
retlen = snprintf(err, errlen,
|
retlen = snprintf(err, errlen,
|
||||||
@ -979,8 +982,6 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
LIST_INIT(&rule->list);
|
|
||||||
LIST_ADDQ(&curpx->tcp_req.l4_rules, &rule->list);
|
|
||||||
return warn;
|
return warn;
|
||||||
error:
|
error:
|
||||||
free(rule);
|
free(rule);
|
||||||
|
Loading…
Reference in New Issue
Block a user