]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme: fix incorrect number of arguments allowed in config
authorMia Kanashi <chad@redpilled.dev>
Sun, 22 Feb 2026 23:06:13 +0000 (01:06 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 23 Feb 2026 08:46:34 +0000 (09:46 +0100)
Fix incorrect number of arguments allowed in config for keywords
"chalenge" and "account-key".

src/acme.c

index b274dd2f8073ddd00670ea7389131b56f71790bd..c3611a199e7dd9c1150313c00d00f538ea9d23e6 100644 (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);