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:
Juan Lang 2007-10-18 20:44:18 -07:00 committed by Alexandre Julliard
parent cf904c2bc4
commit 5d6feab0e2
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}