Skip to content

Commit 2dc0b40

Browse files
committed
- Fix NLnetLabs#174: NS Records below delegation are not ignored (nsd-checkzone
also does not raise any issue).
1 parent 36c93d2 commit 2dc0b40

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

doc/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
6 May 2021: Wouter
2+
- Fix #174: NS Records below delegation are not ignored (nsd-checkzone
3+
also does not raise any issue).
4+
15
4 May 2021: Wouter
26
- Fix SVCB sort call sizeof to be the size of the elements sorted.
37

doc/RELNOTES

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ BUG FIXES:
99
- Fix for #128: Skip over sendmmsg invalid argument when port is zero.
1010
- Fix #171: Invalid negative response (NSEC3) after IXFR.
1111
- Fix to make nsec3_chain_find_prev return NULL if one nsec3 left.
12+
- Fix #174: NS Records below delegation are not ignored (nsd-checkzone
13+
also does not raise any issue).
1214

1315

1416
4.3.6

namedb.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,18 @@ domain_find_parent_zone(namedb_type* db, zone_type* zone)
581581
domain_type *
582582
domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns)
583583
{
584+
/* return highest NS RRset in the zone that is a delegation above */
585+
domain_type* result = NULL;
584586
while (domain && domain != zone->apex) {
585587
*ns = domain_find_rrset(domain, zone, TYPE_NS);
586588
if (*ns)
587-
return domain;
589+
result = domain;
588590
domain = domain->parent;
589591
}
590592

593+
if(result)
594+
return result;
595+
591596
*ns = NULL;
592597
return NULL;
593598
}

0 commit comments

Comments
 (0)