BUG/MINOR: acme/cli: wrong argument check in 'acme renew'

Argument check should be args[2] instead of args[1] which is always
'renew'.

Must be backported to 3.2 and later.
This commit is contained in:
William Lallemand 2026-03-23 11:15:55 +01:00
parent d72be950bd
commit 3d9865a12c

View File

@ -2729,7 +2729,7 @@ static int cli_acme_renew_parse(char **args, char *payload, struct appctx *appct
struct ckch_store *store = NULL;
char *errmsg = NULL;
if (!*args[1]) {
if (!*args[2]) {
memprintf(&errmsg, ": not enough parameters\n");
goto err;
}