mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 13:06:10 +02:00
[MINOR] cfgparse: fix off-by 2 in error message size
was just looking through the source, and noticed this... :) (cherry picked from commit 63b76be713784f487e8d0c859a85513642fe7bdc)
This commit is contained in:
parent
f78224387b
commit
fa1146f204
@ -1460,7 +1460,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int inv)
|
||||
if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
|
||||
return 0;
|
||||
|
||||
memcpy(trash, "error near 'balance'", 19);
|
||||
memcpy(trash, "error near 'balance'", 21);
|
||||
if (backend_parse_balance((const char **)args + 1, trash, sizeof(trash), curproxy) < 0) {
|
||||
Alert("parsing [%s:%d] : %s\n", file, linenum, trash);
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user