From: Mia Kanashi Date: Sun, 22 Feb 2026 23:06:13 +0000 (+0200) Subject: BUG/MINOR: acme: fix incorrect number of arguments allowed in config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa30847ae2f147ec0240df9c78949939f94fbc7;p=thirdparty%2Fhaproxy.git 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". --- diff --git a/src/acme.c b/src/acme.c index b274dd2f8..c3611a199 100644 --- a/src/acme.c +++ b/src/acme.c @@ -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);