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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user