From: wessels <> Date: Tue, 17 Jul 2001 03:35:05 +0000 (+0000) Subject: Bugzilla #201: useragentLogClose() may call logfileClose(NULL) X-Git-Tag: SQUID_3_0_PRE1~1465 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08bf676c216fea496790699731f4404a36a41b58;p=thirdparty%2Fsquid.git Bugzilla #201: useragentLogClose() may call logfileClose(NULL) --- diff --git a/src/useragent.cc b/src/useragent.cc index bca728bfac..ce211f3dd8 100644 --- a/src/useragent.cc +++ b/src/useragent.cc @@ -1,6 +1,6 @@ /* - * $Id: useragent.cc,v 1.25 2001/05/20 00:09:25 hno Exp $ + * $Id: useragent.cc,v 1.26 2001/07/16 21:35:05 wessels Exp $ * * DEBUG: section 40 User-Agent logging * AUTHOR: Joe Ramey @@ -87,6 +87,8 @@ void useragentLogClose(void) { #if USE_USERAGENT_LOG + if (NULL == useragentlog) + return; logfileClose(useragentlog); useragentlog = NULL; #endif