2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] handle servfail at DLZ zone apex

3522.	[bug]		DLZ lookups could fail to return SERVFAIL when
			they ought to. [RT #32685]
This commit is contained in:
Evan Hunt
2013-03-11 15:54:03 -07:00
parent b7e6fc2a4c
commit 21a7fde6ba
4 changed files with 32 additions and 4 deletions

View File

@@ -613,7 +613,10 @@ findnodeext(dns_db_t *db, dns_name_t *name, isc_boolean_t create,
MAYBE_UNLOCK(sdlz->dlzimp);
if (result != ISC_R_SUCCESS && !isorigin && !create) {
if (result == ISC_R_NOTFOUND && (isorigin || create))
result = ISC_R_SUCCESS;
if (result != ISC_R_SUCCESS) {
destroynode(node);
return (result);
}
@@ -625,7 +628,8 @@ findnodeext(dns_db_t *db, dns_name_t *name, isc_boolean_t create,
sdlz->dbdata, node);
MAYBE_UNLOCK(sdlz->dlzimp);
if (result != ISC_R_SUCCESS &&
result != ISC_R_NOTIMPLEMENTED) {
result != ISC_R_NOTIMPLEMENTED)
{
destroynode(node);
return (result);
}