From 3e8b07309c293d00e6b71164373e52c0dd19f29f Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Sat, 4 Jul 2020 22:32:30 +0200 Subject: [PATCH] crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans(). Signed-off-by: Serge Gautherie Signed-off-by: Alexandre Julliard --- dlls/crypt32/msg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c index f591a5e72e4..5df03f7c997 100644 --- a/dlls/crypt32/msg.c +++ b/dlls/crypt32/msg.c @@ -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);