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
8cd7abf1
Commit
8cd7abf1
authored
Aug 30, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Properly reference count certificate contexts referenced by a chain.
parent
45eef63a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
chain.c
dlls/crypt32/chain.c
+8
-2
No files found.
dlls/crypt32/chain.c
View file @
8cd7abf1
...
...
@@ -250,7 +250,7 @@ static BOOL CRYPT_AddCertToSimpleChain(PCERT_SIMPLE_CHAIN chain,
{
memset
(
element
,
0
,
sizeof
(
CERT_CHAIN_ELEMENT
));
element
->
cbSize
=
sizeof
(
CERT_CHAIN_ELEMENT
);
element
->
pCertContext
=
cert
;
element
->
pCertContext
=
CertDuplicateCertificateContext
(
cert
)
;
if
(
dwFlags
&
CERT_STORE_REVOCATION_FLAG
&&
!
(
dwFlags
&
CERT_STORE_NO_CRL_FLAG
))
element
->
TrustStatus
.
dwErrorStatus
|=
CERT_TRUST_IS_REVOKED
;
...
...
@@ -288,12 +288,18 @@ static BOOL CRYPT_AddCertToSimpleChain(PCERT_SIMPLE_CHAIN chain,
return
ret
;
}
static
void
CRYPT_FreeChainElement
(
PCERT_CHAIN_ELEMENT
element
)
{
CertFreeCertificateContext
(
element
->
pCertContext
);
CryptMemFree
(
element
);
}
static
void
CRYPT_FreeSimpleChain
(
PCERT_SIMPLE_CHAIN
chain
)
{
DWORD
i
;
for
(
i
=
0
;
i
<
chain
->
cElement
;
i
++
)
C
ryptMemFree
(
chain
->
rgpElement
[
i
]);
C
RYPT_FreeChainElement
(
chain
->
rgpElement
[
i
]);
CryptMemFree
(
chain
->
rgpElement
);
CryptMemFree
(
chain
);
}
...
...
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