]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix "access_log none" (and "forward_log none")
authorhno <>
Tue, 26 Feb 2002 15:13:07 +0000 (15:13 +0000)
committerhno <>
Tue, 26 Feb 2002 15:13:07 +0000 (15:13 +0000)
Thanks to Arkadi E. Shishlov.

src/access_log.cc
src/forward.cc

index 72a9fab3833337e5f6440b538a6dc3e49e42b835..8678b1cb5ca0d8f7af9283cb0bd1587356cb5e25 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: access_log.cc,v 1.72 2001/10/24 06:55:43 hno Exp $
+ * $Id: access_log.cc,v 1.73 2002/02/26 08:13:07 hno Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -357,6 +357,8 @@ accessLogRotate(void)
 void
 accessLogClose(void)
 {
+    if (NULL == logfile)
+       return;
     logfileClose(logfile);
     logfile = NULL;
 #if HEADERS_LOG
index ae41e9f935b4c3ba5675e7329028f60fc22d0339..f5e8c9fd8ee49b62ed231cc4d925062878e13d55 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.82 2001/10/10 15:17:41 adrian Exp $
+ * $Id: forward.cc,v 1.83 2002/02/26 08:13:07 hno Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -796,6 +796,8 @@ fwdReforwardableStatus(http_status s)
 void
 fwdUninit(void)
 {
+    if (NULL == logfile)
+       return;
     logfileClose(logfile);
     logfile = NULL;
 }