mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 23:01:24 +02:00
[MINOR] Consistently use error in tcp_parse_tcp_req()
It seems to me that without this change tcp_parse_tcp_req() may leak memory.
This commit is contained in:
parent
14389e7036
commit
6c54d8b63b
@ -1213,7 +1213,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
|||||||
if (!(curpx->cap & PR_CAP_FE)) {
|
if (!(curpx->cap & PR_CAP_FE)) {
|
||||||
snprintf(err, errlen, "%s %s is not allowed because %s %s is not a frontend",
|
snprintf(err, errlen, "%s %s is not allowed because %s %s is not a frontend",
|
||||||
args[0], args[1], proxy_type_str(curpx), curpx->id);
|
args[0], args[1], proxy_type_str(curpx), curpx->id);
|
||||||
return -1;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tcp_parse_request_rule(args, arg, section_type, curpx, defpx, rule, err, errlen) < 0)
|
if (tcp_parse_request_rule(args, arg, section_type, curpx, defpx, rule, err, errlen) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user