Serge Gautherie : crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans().
Alexandre Julliard
julliard at winehq.org
Wed Jul 15 16:44:46 CDT 2020
Module: wine
Branch: master
Commit: 3e8b07309c293d00e6b71164373e52c0dd19f29f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3e8b07309c293d00e6b71164373e52c0dd19f29f
Author: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Date: Sat Jul 4 22:32:30 2020 +0200
crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans().
Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 f591a5e72e..5df03f7c99 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);
More information about the wine-cvs
mailing list