From: Francesco Chemolli Date: Sun, 6 Aug 2017 09:31:17 +0000 (+0100) Subject: Fix potentially uninitialised pointer X-Git-Tag: M-staged-PR71~62^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd0b9e6600b195152f8d8acfb81c44e7fc24e08c;p=thirdparty%2Fsquid.git Fix potentially uninitialised pointer Newer compilers barf on an uninitialised pointer in src/security/Handshake.cc . Fix it. --- diff --git a/src/security/Handshake.cc b/src/security/Handshake.cc index 7a073c574b..73c7a70d65 100644 --- a/src/security/Handshake.cc +++ b/src/security/Handshake.cc @@ -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 }