crypt32: Don't keep a pointer to the lower quality chains when choosing a higher quality one, otherwise they'll get double-freed.
This commit is contained in:
parent
cf904c2bc4
commit
5d6feab0e2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue