Commit 5d6feab0 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Don't keep a pointer to the lower quality chains when choosing a higher…

crypt32: Don't keep a pointer to the lower quality chains when choosing a higher quality one, otherwise they'll get double-freed.
parent cf904c2b
......@@ -1272,6 +1272,8 @@ static PCertificateChain CRYPT_ChooseHighestQualityChain(
chain->context.rgpLowerQualityChainContext;
alternate->context.rgpLowerQualityChainContext[i] =
(PCCERT_CHAIN_CONTEXT)chain;
chain->context.cLowerQualityChainContext = 0;
chain->context.rgpLowerQualityChainContext = NULL;
chain = alternate;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment