mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-28 03:21:53 +01:00
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:
parent
d72be950bd
commit
3d9865a12c
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user