mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
denied axfr requests were not effective for writable DLZ zones
This commit is contained in:
@@ -817,12 +817,12 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
|
||||
result = dns_zt_find(client->view->zonetable, question_name, 0, NULL,
|
||||
&zone);
|
||||
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
if (result != ISC_R_SUCCESS || dns_zone_gettype(zone) == dns_zone_dlz) {
|
||||
/*
|
||||
* Normal zone table does not have a match.
|
||||
* Try the DLZ database
|
||||
* The normal zone table does not have a match, or this is
|
||||
* marked in the zone table as a DLZ zone. Check the DLZ
|
||||
* databases for a match.
|
||||
*/
|
||||
// Temporary: only searching the first DLZ database
|
||||
if (! ISC_LIST_EMPTY(client->view->dlz_searched)) {
|
||||
result = dns_dlzallowzonexfr(client->view,
|
||||
question_name,
|
||||
|
Reference in New Issue
Block a user