wintrust: Only do policy check if pointer is set.

This commit is contained in:
Juan Lang 2008-09-22 13:19:24 -07:00 committed by Alexandre Julliard
parent f3ba89f948
commit 2844cb5a65
1 changed files with 7 additions and 2 deletions

View File

@ -665,8 +665,13 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
else
{
if ((ret = WINTRUST_CopyChain(data, signer)))
ret = data->psPfns->pfnCertCheckPolicy(data, signer, FALSE,
0);
{
if (data->psPfns->pfnCertCheckPolicy)
ret = data->psPfns->pfnCertCheckPolicy(data, signer,
FALSE, 0);
else
TRACE("no cert check policy, skipping policy check\n");
}
}
}
}