BUG/MINOR: acme: does not try to unlock after a failed trylock

Return after a failed trylock in acme_update_certificate() instead of
jumping to the error label which does an unlock.
This commit is contained in:
William Lallemand 2025-04-29 11:29:52 +02:00
parent 1cd0b35896
commit 2f7f65e159

View File

@ -706,8 +706,7 @@ int acme_update_certificate(struct task *task, struct acme_ctx *ctx, char **errm
if (HA_SPIN_TRYLOCK(CKCH_LOCK, &ckch_lock)) {
memprintf(errmsg, "couldn't get the certificate lock!");
goto error;
return ret;
}
if ((old_ckchs = ckchs_lookup(new_ckchs->path)) == NULL) {