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:
Mia Kanashi 2026-02-23 01:06:13 +02:00 committed by William Lallemand
parent ca5c07b677
commit 5aa30847ae

View file

@ -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);