]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #201: useragentLogClose() may call logfileClose(NULL)
authorwessels <>
Tue, 17 Jul 2001 03:35:05 +0000 (03:35 +0000)
committerwessels <>
Tue, 17 Jul 2001 03:35:05 +0000 (03:35 +0000)
src/useragent.cc

index bca728bfacf7168c5bd7e4d48769808c7877d681..ce211f3dd86cc0aec0516b36ebb79b4daff87d8b 100644 (file)
@@ -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 <ramey@csc.ti.com>
@@ -87,6 +87,8 @@ void
 useragentLogClose(void)
 {
 #if USE_USERAGENT_LOG
+    if (NULL == useragentlog)
+       return;
     logfileClose(useragentlog);
     useragentlog = NULL;
 #endif