]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix potentially uninitialised pointer
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 6 Aug 2017 09:31:17 +0000 (10:31 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 6 Aug 2017 21:45:07 +0000 (22:45 +0100)
Newer compilers barf on an uninitialised pointer in
src/security/Handshake.cc . Fix it.

src/security/Handshake.cc

index 7a073c574b6ea057283693000595c07160e4bb25..73c7a70d6568ace121e3308e36ff7dc58bf64bce 100644 (file)
@@ -547,7 +547,7 @@ Security::HandshakeParser::ParseCertificate(const SBuf &raw, Security::CertPoint
     Must(x509Pos == x509Start + raw.length()); // no leftovers
 #else
     // workaround GCC -O3 error with unused variables. see bug 4663.
-    (void)pCert;
+    pCert = nullptr;
     debugs(83, 2, "TLS parsing is not supported without OpenSSL. " << raw);
 #endif
 }