Marcus Meissner : cryptnet: Added a potentially missing NULL ptr check ( Coverity).

Alexandre Julliard julliard at winehq.org
Tue Dec 1 09:19:43 CST 2009


Module: wine
Branch: master
Commit: 28c6c44df4ff07ec23bac00ac8f4c4b581b224ec
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=28c6c44df4ff07ec23bac00ac8f4c4b581b224ec

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Dec  1 10:26:48 2009 +0100

cryptnet: Added a potentially missing NULL ptr check (Coverity).

---

 dlls/cryptnet/cryptnet_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c
index afae942..34bbc58 100644
--- a/dlls/cryptnet/cryptnet_main.c
+++ b/dlls/cryptnet/cryptnet_main.c
@@ -1616,7 +1616,8 @@ BOOL WINAPI CertDllVerifyRevocation(DWORD dwEncodingType, DWORD dwRevType,
                      NULL);
                     if (dwFlags & CERT_VERIFY_CACHE_ONLY_BASED_REVOCATION)
                         retrievalFlags |= CRYPT_CACHE_ONLY_RETRIEVAL;
-                    if (dwFlags & CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG &&
+                    if ((dwFlags & CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG) &&
+                     pRevPara &&
                      pRevPara->cbSize >= offsetof(CERT_REVOCATION_PARA,
                      dwUrlRetrievalTimeout) + sizeof(DWORD))
                     {




More information about the wine-cvs mailing list