https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0f8306b37f598c064b2f81...
commit 0f8306b37f598c064b2f812da9f73ceb6cd9a5d8 Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Sat Jul 18 15:40:05 2020 +0200 Commit: GitHub noreply@github.com CommitDate: Sat Jul 18 15:40:05 2020 +0200
[CRYPT32] CRYPT_ExportKeyTrans(): Check 'CRYPT_ConstructBitBlob()' return value (#2983)
Import https://source.winehq.org/git/wine.git/commit/3e8b07309c293d00e6b71164373e52... CORE-8156
Co-authored-by: Victor Martinez Calvo vmartinez@reactos.org --- dll/win32/crypt32/msg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dll/win32/crypt32/msg.c b/dll/win32/crypt32/msg.c index 41323908557..9a0e4e899e1 100644 --- a/dll/win32/crypt32/msg.c +++ b/dll/win32/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);