crypt32: Fix frequency with which chains are checked for cycles.

This commit is contained in:
Juan Lang 2008-10-29 12:24:31 -07:00 committed by Alexandre Julliard
parent 307d7b965f
commit 39a7d40413
1 changed files with 1 additions and 1 deletions

View File

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