Commit 3e8b0730 authored by Serge Gautherie's avatar Serge Gautherie Committed by Alexandre Julliard

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

parent e308d81a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment