From: Alex Rousskov Date: Fri, 3 Feb 2012 22:47:56 +0000 (-0700) Subject: Fixed GCC v4.1.2 "converting to non-pointer type bool from NULL" warning. X-Git-Tag: BumpSslServerFirst.take05~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0137cd1bab36ad0e0d8835fc7f790414dadb2ee;p=thirdparty%2Fsquid.git Fixed GCC v4.1.2 "converting to non-pointer type bool from NULL" warning. --- diff --git a/src/ssl/gadgets.cc b/src/ssl/gadgets.cc index e5a266f4df..557a70a67e 100644 --- a/src/ssl/gadgets.cc +++ b/src/ssl/gadgets.cc @@ -264,9 +264,9 @@ static bool buildCertificate(Ssl::X509_Pointer & cert, Ssl::CertificatePropertie aTime = X509_get_notAfter(properties.signWithX509.get()); if (aTime) { if (!X509_set_notAfter(cert.get(), aTime)) - return NULL; + return false; } else if (!X509_gmtime_adj(X509_get_notAfter(cert.get()), 60*60*24*356*3)) - return NULL; + return false; if (properties.mimicCert.get()) { unsigned char *alStr;