Marcus Meissner : winhttp: Check for endCert being NULL (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Dec 8 11:10:37 CST 2009
Module: wine
Branch: master
Commit: 298051ab37b4c6725865fb4a56788d3c9e3201b0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=298051ab37b4c6725865fb4a56788d3c9e3201b0
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Dec 6 20:58:14 2009 +0100
winhttp: Check for endCert being NULL (Coverity).
---
dlls/winhttp/net.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 10176d9..6512db5 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -359,6 +359,7 @@ static int netconn_secure_verify( int preverify_ok, X509_STORE_CTX *ctx )
CertFreeCertificateContext( context );
}
}
+ if (!endCert) ret = FALSE;
if (ret)
ret = netconn_verify_cert( endCert, store, server );
CertFreeCertificateContext( endCert );
More information about the wine-cvs
mailing list