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:
parent
1cd0b35896
commit
2f7f65e159
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user