]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
authorhno <>
Sun, 30 Dec 2007 01:15:45 +0000 (01:15 +0000)
committerhno <>
Sun, 30 Dec 2007 01:15:45 +0000 (01:15 +0000)
Fix netdb_filename usage

I (Henrik) apparently forgot to --enable-icmp when testing the new directive..

src/net_db.cc

index 8106414fdf534ca0572b9349039f92e82d0ca8db..e9192dab06d8ae5974baf3feabd57679a77b6baf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: net_db.cc,v 1.200 2007/12/27 14:55:47 hno Exp $
+ * $Id: net_db.cc,v 1.201 2007/12/29 18:15:45 hno Exp $
  *
  * DEBUG: section 38    Network Measurement Database
  * AUTHOR: Duane Wessels
@@ -466,7 +466,7 @@ sortPeerByRtt(const void *A, const void *B)
 static void
 netdbSaveState(void *foo)
 {
-    if (strcmp(config.netdbFilename, "none") == 0)
+    if (strcmp(Config.netdbFilename, "none") == 0)
        return;
 
     Logfile *lf;
@@ -488,7 +488,7 @@ netdbSaveState(void *foo)
     lf = logfileOpen(Config.netdbFilename, 4096, 0);
 
     if (NULL == lf) {
-        debugs(50, 1, "netdbSaveState: " << path << ": " << xstrerror());
+        debugs(50, 1, "netdbSaveState: " << Config.netdbFilename << ": " << xstrerror());
         return;
     }
 
@@ -529,7 +529,7 @@ netdbSaveState(void *foo)
 static void
 netdbReloadState(void)
 {
-    if (strcmp(config.netdbFilename, "none") == 0)
+    if (strcmp(Config.netdbFilename, "none") == 0)
        return;
 
     char *s;