mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix classification for QTYPE=CNAME queries when QNAME minimisation is enabled.
git-svn-id: file:///svn/unbound/trunk@4858 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
ed24498f2e
commit
afd4063f20
2 changed files with 13 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
17 August 2018: Ralph
|
||||||
|
- Fix classification for QTYPE=CNAME queries when QNAME minimisation is
|
||||||
|
enabled.
|
||||||
|
|
||||||
17 August 2018: Wouter
|
17 August 2018: Wouter
|
||||||
- Set libunbound to increase current, because the libunbound change
|
- Set libunbound to increase current, because the libunbound change
|
||||||
to the event callback function signature. That needs programs,
|
to the event callback function signature. That needs programs,
|
||||||
|
|
|
||||||
|
|
@ -2598,6 +2598,15 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||||
/* DNAME to a subdomain loop; do not recurse */
|
/* DNAME to a subdomain loop; do not recurse */
|
||||||
type = RESPONSE_TYPE_ANSWER;
|
type = RESPONSE_TYPE_ANSWER;
|
||||||
}
|
}
|
||||||
|
} else if(type == RESPONSE_TYPE_CNAME &&
|
||||||
|
iq->qchase.qtype == LDNS_RR_TYPE_CNAME &&
|
||||||
|
iq->minimisation_state == MINIMISE_STATE &&
|
||||||
|
query_dname_compare(iq->qchase.qname, iq->qinfo_out.qname) == 0) {
|
||||||
|
/* The minimised query for full QTYPE and hidden QTYPE can be
|
||||||
|
* classified as CNAME response type, even when the original
|
||||||
|
* QTYPE=CNAME. This should be treated as answer response type.
|
||||||
|
*/
|
||||||
|
type = RESPONSE_TYPE_ANSWER;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handle each of the type cases */
|
/* handle each of the type cases */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue