Skip to content

Commit

Permalink
- Fix #194: Incorrect NSEC3 response for SOA query below delegation
Browse files Browse the repository at this point in the history
  point.
  • Loading branch information
wcawijngaards committed Sep 22, 2021
1 parent 222d640 commit ba0002e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
22 September 2021: Wouter
- Fix #194: Incorrect NSEC3 response for SOA query below delegation
point.

13 September 2021: Wouter
- Fix compile failure with openssl 1.0.2.

Expand Down
2 changes: 2 additions & 0 deletions doc/RELNOTES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ BUG FIXES:
`query->delegation_rrset' failed.
- Fix #190: NSD returns 3 NSEC3 records for NODATA response.
- Fix compile failure with openssl 1.0.2.
- Fix #194: Incorrect NSEC3 response for SOA query below delegation
point.

4.3.7
================
Expand Down
7 changes: 5 additions & 2 deletions namedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,13 @@ domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns)
{
/* return highest NS RRset in the zone that is a delegation above */
domain_type* result = NULL;
rrset_type* rrset = NULL;
while (domain && domain != zone->apex) {
*ns = domain_find_rrset(domain, zone, TYPE_NS);
if (*ns)
rrset = domain_find_rrset(domain, zone, TYPE_NS);
if (rrset) {
*ns = rrset;
result = domain;
}
domain = domain->parent;
}

Expand Down

0 comments on commit ba0002e

Please sign in to comment.