nonRD fix.

git-svn-id: file:///svn/unbound/trunk@785 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-11-28 11:02:01 +00:00
parent 16906c53e6
commit 2c2eaecc6c
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@
the packet got rcode NXDOMAIN into rcode NOERROR. (since the initial
domain exists).
- nicer verbosity: 0 and 1 levels.
- lower nonRDquery chance of eliciting wrongly typed validation
requiring message from the cache.
27 November 2007: Wouter
- per suggestion in rfc2308, replaced default max-ttl value with 1 day.

View file

@ -65,7 +65,7 @@ val_classify_response(uint16_t query_flags, struct query_info* qinf,
return VAL_CLASS_NAMEERROR;
/* check for referral: nonRD query */
if(!(query_flags&BIT_RD))
if(!(query_flags&BIT_RD) && rep->an_numrrsets == 0)
return VAL_CLASS_REFERRAL;
/* dump bad messages */