mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-26 19:52:06 +01: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) (cherry picked from commit a801db6c5ea750f93a3795dbb2e70c03e05bbef4)
This commit is contained in:
parent
fd39ddaa3d
commit
65cb2f1c85
@ -1622,7 +1622,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