]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Wed, 4 Oct 2000 07:02:13 +0000 (07:02 +0000)
committerwessels <>
Wed, 4 Oct 2000 07:02:13 +0000 (07:02 +0000)
 - Got the logic backwards in these callbacks.  Pass NULL if negatively
   cached, rather than NULL for valid entries.

src/fqdncache.cc
src/ipcache.cc

index 12cf3f49480b2d2dbec1c7c1c0a58843d0df172f..deae7bfb336a7e50ee75cbb5b2a570f0133bccd3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fqdncache.cc,v 1.138 2000/10/03 23:01:31 wessels Exp $
+ * $Id: fqdncache.cc,v 1.139 2000/10/04 01:02:13 wessels Exp $
  *
  * DEBUG: section 35    FQDN Cache
  * AUTHOR: Harvest Derived
@@ -194,7 +194,7 @@ fqdncacheCallback(fqdncache_entry * f)
     f->handlerData = NULL;
     if (cbdataValid(handlerData)) {
        dns_error_message = f->error_message;
-       handler(f->flags.negcached ? f->names[0] : NULL, handlerData);
+       handler(f->flags.negcached ? NULL : f->names[0], handlerData);
     }
     cbdataUnlock(handlerData);
     fqdncacheUnlockEntry(f);
index 0272075128e020c9fac5bb3057fd741604a8ed73..deaac6155a980fe733e081992962bc8f9334ba7d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.222 2000/10/04 00:24:17 wessels Exp $
+ * $Id: ipcache.cc,v 1.223 2000/10/04 01:02:13 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -204,7 +204,7 @@ ipcacheCallback(ipcache_entry * i)
     i->handlerData = NULL;
     if (cbdataValid(handlerData)) {
        dns_error_message = i->error_message;
-       handler(i->flags.negcached ? &i->addrs : NULL, handlerData);
+       handler(i->flags.negcached ? NULL : &i->addrs, handlerData);
     }
     cbdataUnlock(i->handlerData);
     ipcacheUnlockEntry(i);