Juan Lang : wintrust: Only do policy check if pointer is set.
Alexandre Julliard
julliard at winehq.org
Tue Sep 23 09:28:23 CDT 2008
Module: wine
Branch: master
Commit: 2844cb5a65d2b045a2f53e5dee4971c3a42d95b6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2844cb5a65d2b045a2f53e5dee4971c3a42d95b6
Author: Juan Lang <juan.lang at gmail.com>
Date: Mon Sep 22 13:19:24 2008 -0700
wintrust: Only do policy check if pointer is set.
---
dlls/wintrust/softpub.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/wintrust/softpub.c b/dlls/wintrust/softpub.c
index 19a468c..06238b2 100644
--- a/dlls/wintrust/softpub.c
+++ b/dlls/wintrust/softpub.c
@@ -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");
+ }
}
}
}
More information about the wine-cvs
mailing list