From: wessels <> Date: Thu, 20 Feb 1997 00:08:19 +0000 (+0000) Subject: move blocking gethostbyname warning X-Git-Tag: SQUID_3_0_PRE1~5106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebcf343c5069358925fde9fbefb905bbbc937f3d;p=thirdparty%2Fsquid.git move blocking gethostbyname warning --- diff --git a/src/ipcache.cc b/src/ipcache.cc index ab83e28dba..9984c4e780 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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 */