From: hno <> Date: Tue, 26 Feb 2002 15:13:07 +0000 (+0000) Subject: Fix "access_log none" (and "forward_log none") X-Git-Tag: SQUID_3_0_PRE1~1171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dab0cec30c5979e722f45058793b16e71cd6d590;p=thirdparty%2Fsquid.git Fix "access_log none" (and "forward_log none") Thanks to Arkadi E. Shishlov. --- diff --git a/src/access_log.cc b/src/access_log.cc index 72a9fab383..8678b1cb5c 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -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 diff --git a/src/forward.cc b/src/forward.cc index ae41e9f935..f5e8c9fd8e 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -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; }