- do not synthesize a CNAME message from cache for qtype DS.

git-svn-id: file:///svn/unbound/trunk@2335 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2010-11-05 15:29:50 +00:00
parent f41a92daf5
commit 0b30fca935
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,6 @@
5 November 2010: Wouter
- do not synthesize a CNAME message from cache for qtype DS.
4 November 2010: Wouter 4 November 2010: Wouter
- Use central entropy to seed threads. - Use central entropy to seed threads.

View file

@ -630,8 +630,10 @@ dns_cache_lookup(struct module_env* env,
lock_rw_unlock(&rrset->entry.lock); lock_rw_unlock(&rrset->entry.lock);
} }
/* see if we have CNAME for this domain */ /* see if we have CNAME for this domain,
if( (rrset=rrset_cache_lookup(env->rrset_cache, qname, qnamelen, * but not for DS records (which are part of the parent) */
if( qtype != LDNS_RR_TYPE_DS &&
(rrset=rrset_cache_lookup(env->rrset_cache, qname, qnamelen,
LDNS_RR_TYPE_CNAME, qclass, 0, now, 0))) { LDNS_RR_TYPE_CNAME, qclass, 0, now, 0))) {
struct dns_msg* msg = rrset_msg(rrset, region, now, &k); struct dns_msg* msg = rrset_msg(rrset, region, now, &k);
if(msg) { if(msg) {