Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e44a9d2c
Commit
e44a9d2c
authored
Jun 04, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/schannel: Avoid use-after-free in AcquireClientCredentials() (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
70d119b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
schannel.c
dlls/secur32/schannel.c
+2
-2
No files found.
dlls/secur32/schannel.c
View file @
e44a9d2c
...
...
@@ -589,8 +589,9 @@ static SECURITY_STATUS schan_AcquireClientCredentials(const void *schanCred,
}
params
.
key_size
=
key_size
;
params
.
key_blob
=
key_blob
;
if
(
GNUTLS_CALL
(
allocate_certificate_credentials
,
&
params
))
goto
fail
;
status
=
GNUTLS_CALL
(
allocate_certificate_credentials
,
&
params
)
;
free
(
key_blob
);
if
(
status
)
goto
fail
;
handle
=
schan_alloc_handle
(
creds
,
SCHAN_HANDLE_CRED
);
if
(
handle
==
SCHAN_INVALID_HANDLE
)
goto
fail
;
...
...
@@ -609,7 +610,6 @@ static SECURITY_STATUS schan_AcquireClientCredentials(const void *schanCred,
fail:
free
(
creds
);
free
(
key_blob
);
return
SEC_E_INTERNAL_ERROR
;
}
...
...
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