mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[CRYPT32] CRYPT_ExportKeyTrans(): Check 'CRYPT_ConstructBitBlob()' return value (#2983)
Import 3e8b07309c
CORE-8156
Co-authored-by: Victor Martinez Calvo <vmartinez@reactos.org>
This commit is contained in:
parent
b509658280
commit
0f8306b37f
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue