Skip to content

Commit

Permalink
- Fix #152: '*' in Rdata causes the return code to be NOERROR instead
Browse files Browse the repository at this point in the history
  of NX.
  • Loading branch information
wcawijngaards committed Jan 15, 2021
1 parent 356c2b5 commit b7b0d17
Show file tree
Hide file tree
Showing 3 changed files with 9 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 @@
15 January 2021: Wouter
- Fix #152: '*' in Rdata causes the return code to be NOERROR instead
of NX.

11 January 2021: Wouter
- Fix #151: DNAME not applied more than once to resolve the query.
- Fix dname test for #148.
Expand Down
2 changes: 2 additions & 0 deletions doc/RELNOTES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ BUG FIXES:
for a CNAME query.
- Fix configure.ac for autoconf 2.70.
- Fix #151: DNAME not applied more than once to resolve the query.
- Fix #152: '*' in Rdata causes the return code to be NOERROR instead
of NX.


4.3.4
Expand Down
5 changes: 3 additions & 2 deletions query.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ answer_authoritative(struct nsd *nsd,
domain_type *match;
domain_type *original = closest_match;
domain_type *dname_ce;
domain_type *wildcard_child;
rrset_type *rrset;

#ifdef NSEC3
Expand Down Expand Up @@ -1160,9 +1161,9 @@ answer_authoritative(struct nsd *nsd,
closest_match, closest_encloser, newname);
q->zone = origzone;
return;
} else if (domain_wildcard_child(closest_encloser)) {
} else if ((wildcard_child=domain_wildcard_child(closest_encloser))!=NULL &&
wildcard_child->is_existing) {
/* Generate the domain from the wildcard. */
domain_type *wildcard_child = domain_wildcard_child(closest_encloser);
#ifdef RATELIMIT
q->wildcard_domain = wildcard_child;
#endif
Expand Down

0 comments on commit b7b0d17

Please sign in to comment.