mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
[MINOR] cfgparse: fix off-by 2 in error message size
was just looking through the source, and noticed this... :)
(cherry picked from commit 63b76be713)
(cherry picked from commit a801db6c5ea750f93a3795dbb2e70c03e05bbef4)
This commit is contained in:
parent
fd39ddaa3d
commit
65cb2f1c85
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue