]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed GCC v4.1.2 "converting to non-pointer type bool from NULL" warning.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 3 Feb 2012 22:47:56 +0000 (15:47 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 3 Feb 2012 22:47:56 +0000 (15:47 -0700)
src/ssl/gadgets.cc

index e5a266f4df07c4244207c98a365cbb60ba3e1ccd..557a70a67eeeadd3f179b55b7b4a3ce9bf30d0c3 100644 (file)
@@ -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;