- Got the logic backwards in these callbacks. Pass NULL if negatively
cached, rather than NULL for valid entries.
/*
- * $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
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);
/*
- * $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
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);