Only unlock in rsa_get_blinding when locking was successful

CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28438)
This commit is contained in:
two-heart 2025-09-04 12:20:53 +02:00 committed by Pauli
parent c89b46826c
commit dbad8448c2
1 changed files with 1 additions and 1 deletions

View File

@ -264,9 +264,9 @@ static BN_BLINDING *rsa_get_blinding(RSA *rsa, BN_CTX *ctx)
BN_BLINDING_free(ret);
ret = NULL;
}
}
CRYPTO_THREAD_unlock(rsa->lock);
}
}
return ret;
}