]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Changed ipcache_gethostbyname() to return NULL if i->addrs.count == 0;
authorwessels <>
Thu, 14 May 1998 03:25:54 +0000 (03:25 +0000)
committerwessels <>
Thu, 14 May 1998 03:25:54 +0000 (03:25 +0000)
src/ipcache.cc

index 7490c3157dea5686d187f19fd25006da6a7749c5..938887932527e82f6c5b4a0667527cd536f7d3e5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.184 1998/05/13 21:24:47 wessels Exp $
+ * $Id: ipcache.cc,v 1.185 1998/05/13 21:25:54 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -724,6 +724,8 @@ ipcache_gethostbyname(const char *name, int flags)
            IpcacheStats.negative_hits++;
            dns_error_message = i->error_message;
            return NULL;
+       } else if (i->addrs.count == 0) {
+           (void) 0;
        } else {
            IpcacheStats.hits++;
            i->lastref = squid_curtime;