From 39a7d40413ce5864a27eccaa47c24f31cdabad38 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 29 Oct 2008 12:24:31 -0700 Subject: [PATCH] crypt32: Fix frequency with which chains are checked for cycles. --- dlls/crypt32/chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index cd70d499b16..f52ac0c3c63 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -304,7 +304,7 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine, chain->rgpElement[chain->cElement - 2]->TrustStatus.dwInfoStatus = subjectInfoStatus; /* FIXME: initialize the rest of element */ - if (chain->cElement % engine->CycleDetectionModulus) + if (!(chain->cElement % engine->CycleDetectionModulus)) CRYPT_CheckSimpleChainForCycles(chain); CRYPT_CombineTrustStatus(&chain->TrustStatus, &element->TrustStatus);