mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-05 22:39:35 -05:00
nonRD fix.
git-svn-id: file:///svn/unbound/trunk@785 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
16906c53e6
commit
2c2eaecc6c
2 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue