mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-28 20:30:59 -05:00
BUG/MINOR: acme: fix incorrect number of arguments allowed in config
Fix incorrect number of arguments allowed in config for keywords "chalenge" and "account-key".
This commit is contained in:
parent
ca5c07b677
commit
5aa30847ae
1 changed files with 2 additions and 2 deletions
|
|
@ -393,7 +393,7 @@ static int cfg_parse_acme_kws(char **args, int section_type, struct proxy *curpx
|
|||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
if (alertif_too_many_args(2, file, linenum, args, &err_code))
|
||||
if (alertif_too_many_args(1, file, linenum, args, &err_code))
|
||||
goto out;
|
||||
|
||||
ha_free(&cur_acme->account.file);
|
||||
|
|
@ -410,7 +410,7 @@ static int cfg_parse_acme_kws(char **args, int section_type, struct proxy *curpx
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (alertif_too_many_args(2, file, linenum, args, &err_code))
|
||||
if (alertif_too_many_args(1, file, linenum, args, &err_code))
|
||||
goto out;
|
||||
|
||||
ha_free(&cur_acme->challenge);
|
||||
|
|
|
|||
Loading…
Reference in a new issue