rsa: add check after calling BN_BLINDING_lock
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Sat, 5 Feb 2022 10:00:51 +0000 (18:00 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 8 Feb 2022 14:22:35 +0000 (15:22 +0100)
commitaefbcde29166caf851cf388361d70fd0dcf17d87
treedb1a33cfe63ad062316a1bcb9f9b3445897c2c88
parent14db620282bea38dc44479e562cf9bb61a716444
rsa: add check after calling BN_BLINDING_lock

As the potential failure of getting lock, we need to check the return
value of the BN_BLINDING_lock() in order to avoid the dirty data.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17642)
crypto/rsa/rsa_ossl.c