BUG/MINOR: acme/cli: fix argument check and error in 'acme challenge_ready'

Fix the check or arguments of the 'acme challenge_ready' command which
was checking if all arguments are NULL instead of one of the argument.

Must be backported to 3.2 and later.
This commit is contained in:
William Lallemand 2026-03-23 14:32:28 +01:00
parent c7564c19a2
commit 8e250bba8f

View File

@ -2770,8 +2770,8 @@ static int cli_acme_chall_ready_parse(char **args, char *payload, struct appctx
int remain = 0;
struct ebmb_node *node = NULL;
if (!*args[2] && !*args[3] && !*args[4]) {
memprintf(&msg, ": not enough parameters\n");
if (!*args[2] || !*args[3] || !*args[4]) {
memprintf(&msg, "Not enough parameters: \"acme challenge_ready <certfile> domain <domain>\"\n");
goto err;
}