[PATCH] crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans().
Serge Gautherie
winehq-git_serge_180711 at gautherie.fr
Sat Jul 4 15:32:30 CDT 2020
Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
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 f591a5e..5df03f7 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);
--
2.10.0.windows.1
More information about the wine-devel
mailing list