Merge branch '4212-dead-code-in-dns_rbt-zonedb' into 'main'

Restore the IS_STUB() condition in zone_zonecut_callback

Closes #4212

See merge request isc-projects/bind9!8117
This commit is contained in:
Ondřej Surý
2023-07-20 16:00:13 +00:00

View File

@@ -178,7 +178,7 @@ zone_zonecut_callback(dns_rbtnode_t *node, dns_name_t *name,
/*
* Did we find anything?
*/
if (ns_header != NULL) {
if (!IS_STUB(search->rbtdb) && ns_header != NULL) {
/*
* Note that NS has precedence over DNAME if both exist
* in a zone. Otherwise DNAME take precedence over NS.