]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme/cli: wrong argument check in 'acme renew'
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 23 Mar 2026 10:15:55 +0000 (11:15 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 23 Mar 2026 10:58:53 +0000 (11:58 +0100)
Argument check should be args[2] instead of args[1] which is always
'renew'.

Must be backported to 3.2 and later.

src/acme.c

index 55b6c6cd3e02c5c1c070c665cc565578839dedd9..aa0a6c51a35430d7246941091dac29321a96f47d 100644 (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;
        }