]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug: "access_log none" segfaults Squid on startup
authorhno <>
Wed, 20 Aug 2003 19:34:41 +0000 (19:34 +0000)
committerhno <>
Wed, 20 Aug 2003 19:34:41 +0000 (19:34 +0000)
src/access_log.cc

index 94a8f008316200bdf6eda6b7dee91c8363eb46c6..b048a314b2def3e582504c27e6ac035823d601cb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: access_log.cc,v 1.93 2003/08/13 00:17:24 robertc Exp $
+ * $Id: access_log.cc,v 1.94 2003/08/20 13:34:41 hno Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -1470,7 +1470,7 @@ accessLogInit(void)
     assert(sizeof(log_tags) == (LOG_TYPE_MAX + 1) * sizeof(char *));
 
     for (log = Config.Log.accesslogs; log; log = log->next) {
-        if (strcasecmp(log->filename, "none") == 0)
+        if (log->type == CLF_NONE)
             continue;
 
         log->logfile = logfileOpen(log->filename, MAX_URL << 1, 1);