]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
move blocking gethostbyname warning
authorwessels <>
Thu, 20 Feb 1997 00:08:19 +0000 (00:08 +0000)
committerwessels <>
Thu, 20 Feb 1997 00:08:19 +0000 (00:08 +0000)
src/ipcache.cc

index ab83e28dba0700e44f477adcf9c231c06b180620..9984c4e780e795be7486e36c7e5751d05791474c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.101 1997/02/19 00:04:13 wessels Exp $
+ * $Id: ipcache.cc,v 1.102 1997/02/19 17:08:19 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -711,6 +711,8 @@ ipcache_nbgethostbyname(const char *name, int fd, IPH handler, void *handlerData
     }
     if (addrs != NULL)         /* TEMPORARY */
        debug_trap("ipcache_nbgethostbyname: Stack Trashed");
+    if (NDnsServersAlloc)
+        debug(14, 0, "WARNING: blocking on gethostbyname() for '%s'\n", name);
     ipcache_gethostbyname(name, IP_BLOCKING_LOOKUP);
     ipcache_call_pending(i);
 }
@@ -843,8 +845,6 @@ ipcache_gethostbyname(const char *name, int flags)
     IpcacheStats.misses++;
     if (BIT_TEST(flags, IP_BLOCKING_LOOKUP)) {
        IpcacheStats.ghbn_calls++;
-       debug(14, NDnsServersAlloc ? 0 : 3,
-           "WARNING: blocking on gethostbyname() for '%s'\n", name);
        hp = gethostbyname(name);
        if (hp && hp->h_name && (hp->h_name[0] != '\0') && ip_table) {
            /* good address, cached */