Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dd91e541
Commit
dd91e541
authored
Mar 30, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Correctly free memory in CNG_ImportRSAPubKey().
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f9d83842
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cert.c
dlls/crypt32/cert.c
+2
-3
No files found.
dlls/crypt32/cert.c
View file @
dd91e541
...
...
@@ -2720,7 +2720,7 @@ static BOOL CNG_ImportRSAPubKey(CERT_PUBLIC_KEY_INFO *info, BCRYPT_KEY_HANDLE *k
else
{
FIXME
(
"Unsupported RSA algorithm: %#x
\n
"
,
hdr
->
aiKeyAlg
);
CryptMem
Free
(
hdr
);
Local
Free
(
hdr
);
SetLastError
(
NTE_BAD_ALGID
);
return
FALSE
;
}
...
...
@@ -2762,7 +2762,7 @@ static BOOL CNG_ImportRSAPubKey(CERT_PUBLIC_KEY_INFO *info, BCRYPT_KEY_HANDLE *k
CryptMemFree
(
rsakey
);
done:
CryptMem
Free
(
hdr
);
Local
Free
(
hdr
);
if
(
alg
)
BCryptCloseAlgorithmProvider
(
alg
,
0
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
));
return
!
status
;
...
...
@@ -2773,7 +2773,6 @@ BOOL CNG_ImportPubKey(CERT_PUBLIC_KEY_INFO *pubKeyInfo, BCRYPT_KEY_HANDLE *key)
if
(
!
strcmp
(
pubKeyInfo
->
Algorithm
.
pszObjId
,
szOID_ECC_PUBLIC_KEY
))
return
CNG_ImportECCPubKey
(
pubKeyInfo
,
key
);
if
(
!
strcmp
(
pubKeyInfo
->
Algorithm
.
pszObjId
,
szOID_RSA_RSA
))
return
CNG_ImportRSAPubKey
(
pubKeyInfo
,
key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment