crypt32: Fix frequency with which chains are checked for cycles.
This commit is contained in:
parent
307d7b965f
commit
39a7d40413
|
@ -304,7 +304,7 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine,
|
||||||
chain->rgpElement[chain->cElement - 2]->TrustStatus.dwInfoStatus
|
chain->rgpElement[chain->cElement - 2]->TrustStatus.dwInfoStatus
|
||||||
= subjectInfoStatus;
|
= subjectInfoStatus;
|
||||||
/* FIXME: initialize the rest of element */
|
/* FIXME: initialize the rest of element */
|
||||||
if (chain->cElement % engine->CycleDetectionModulus)
|
if (!(chain->cElement % engine->CycleDetectionModulus))
|
||||||
CRYPT_CheckSimpleChainForCycles(chain);
|
CRYPT_CheckSimpleChainForCycles(chain);
|
||||||
CRYPT_CombineTrustStatus(&chain->TrustStatus,
|
CRYPT_CombineTrustStatus(&chain->TrustStatus,
|
||||||
&element->TrustStatus);
|
&element->TrustStatus);
|
||||||
|
|
Loading…
Reference in New Issue