]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Protect sslErrorList from being used outside USE_SSL. BumpSslServerFirst.take04
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 1 Feb 2012 06:36:28 +0000 (23:36 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 1 Feb 2012 06:36:28 +0000 (23:36 -0700)
src/acl/FilledChecklist.cc

index e2ccb7af36003a49941baba37ce5f79dfae18e7f..523873c53059335b2fc747f79f82e4e083c5e998 100644 (file)
@@ -63,7 +63,9 @@ ACLFilledChecklist::ACLFilledChecklist() :
 #if SQUID_SNMP
         snmp_community(NULL),
 #endif
+#if USE_SSL
         sslErrorList(NULL),
+#endif
         extacl_entry (NULL),
         conn_(NULL),
         fd_(-1),
@@ -92,7 +94,9 @@ ACLFilledChecklist::~ACLFilledChecklist()
 
     cbdataReferenceDone(conn_);
 
+#if USE_SSL
     cbdataReferenceDone(sslErrorList);
+#endif
 
     debugs(28, 4, HERE << "ACLFilledChecklist destroyed " << this);
 }
@@ -175,7 +179,9 @@ ACLFilledChecklist::ACLFilledChecklist(const acl_access *A, HttpRequest *http_re
 #if SQUID_SNMP
         snmp_community(NULL),
 #endif
+#if USE_SSL
         sslErrorList(NULL),
+#endif
         extacl_entry (NULL),
         conn_(NULL),
         fd_(-1),