crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans().

Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Serge Gautherie 2020-07-04 22:32:30 +02:00 committed by Alexandre Julliard
parent e308d81a61
commit 3e8b07309c
1 changed files with 1 additions and 2 deletions

View File

@ -1574,9 +1574,8 @@ static BOOL WINAPI CRYPT_ExportKeyTrans(
ret = CRYPT_ConstructAlgorithmId(&keyInfo.Algorithm,
&pKeyTransEncodeInfo->KeyEncryptionAlgorithm);
if (ret)
CRYPT_ConstructBitBlob(&keyInfo.PublicKey,
ret = CRYPT_ConstructBitBlob(&keyInfo.PublicKey,
&pKeyTransEncodeInfo->RecipientPublicKey);
if (ret)
ret = CryptImportPublicKeyInfo(pKeyTransEncodeInfo->hCryptProv,
X509_ASN_ENCODING, &keyInfo, &expKey);