mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
return NOTFOUND if a hints lookup fails
This commit is contained in:
@@ -559,6 +559,9 @@ dns_view_find(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
|
|||||||
rdataset, sigrdataset);
|
rdataset, sigrdataset);
|
||||||
if (result == ISC_R_SUCCESS || result == DNS_R_GLUE)
|
if (result == ISC_R_SUCCESS || result == DNS_R_GLUE)
|
||||||
result = DNS_R_HINT;
|
result = DNS_R_HINT;
|
||||||
|
else if (result == DNS_R_NXDOMAIN ||
|
||||||
|
result == DNS_R_NXRDATASET)
|
||||||
|
result = DNS_R_NOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Reference in New Issue
Block a user