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:
parent
e308d81a61
commit
3e8b07309c
|
@ -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 New Issue