diff --git a/src/acme.c b/src/acme.c index c2e37c130..098e2c593 100644 --- a/src/acme.c +++ b/src/acme.c @@ -2286,8 +2286,11 @@ static int cli_acme_renew_parse(char **args, char *payload, struct appctx *appct goto err; } - acme_start_task(store, &errmsg); + if (acme_start_task(store, &errmsg) != 0) + goto err; + HA_SPIN_UNLOCK(CKCH_LOCK, &ckch_lock); + return 0; err: HA_SPIN_UNLOCK(CKCH_LOCK, &ckch_lock); return cli_dynerr(appctx, errmsg);