* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: resolver.c,v 1.218.2.37 2004/12/03 02:06:15 marka Exp $ */
+/* $Id: resolver.c,v 1.218.2.38 2005/01/19 23:36:31 marka Exp $ */
#include <config.h>
/*
* A negative response has a SOA record (Type 2)
* and a optional NS RRset (Type 1) or it has neither
- * a SOA or a NS RRset (Type 3) or rcode is NXDOMAIN
- * (handled above) in which case the NS RRset is
- * allowed (Type 4).
+ * a SOA or a NS RRset (Type 3, handled above) or
+ * rcode is NXDOMAIN (handled above) in which case
+ * the NS RRset is allowed (Type 4).
*/
- if (soa_name != NULL || ns_name == NULL)
+ if (soa_name != NULL)
negative_response = ISC_TRUE;
for (rdataset = ISC_LIST_HEAD(name->list);
rdataset != NULL;
domainbuf, namebuf, typebuf, classbuf, addrbuf);
}
+ /*
+ * Clear cache bits.
+ */
+ fctx->attributes &= ~(FCTX_ATTR_WANTNCACHE | FCTX_ATTR_WANTCACHE);
+
/*
* Did we get any answers?
*/