Start dealing with the DNS_R_UNCHANGED case when adding rdatasets.

This commit is contained in:
Bob Halley
1999-10-15 20:51:19 +00:00
parent e0df061f35
commit 9ad0ebf65e
+13 -1
View File
@@ -1122,7 +1122,19 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, isc_stdtime_t now) {
rdataset,
ISC_FALSE,
addedrdataset);
if (result != ISC_R_SUCCESS)
if (result == DNS_R_UNCHANGED) {
if (ANSWER(rdataset) &&
ardataset != NULL) {
/*
* Deal with the case where
* addedrdataset is an NXDOMAIN
* or NXRRSET negative cache
* rdataset; i.e. set eresult
* correctly
*/
INSIST(0);
}
} else if (result != ISC_R_SUCCESS)
break;
}
}