mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Don't disable RPZ and CATZ for zones with an $INCLUDE statement
The code in zone_startload() disables RPZ and CATZ for a zone if dns_master_loadfile() returns anything other than ISC_R_SUCCESS, which makes sense, but it's an error because zone_startload() can also return DNS_R_SEENINCLUDE upon success when the zone had an $INCLUDE statement.
This commit is contained in:
parent
e71549eaba
commit
3d7a9fba3b
@ -2657,13 +2657,13 @@ zone_startload(dns_db_t *db, dns_zone_t *zone, isc_time_t loadtime) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS && result != DNS_R_SEENINCLUDE) {
|
||||||
dns_zone_rpz_disable_db(zone, load->db);
|
dns_zone_rpz_disable_db(zone, load->db);
|
||||||
dns_zone_catz_disable_db(zone, load->db);
|
dns_zone_catz_disable_db(zone, load->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
tresult = dns_db_endload(db, &load->callbacks);
|
tresult = dns_db_endload(db, &load->callbacks);
|
||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS || result == DNS_R_SEENINCLUDE) {
|
||||||
result = tresult;
|
result = tresult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user