From 2c2eaecc6c2f740cb18b4f80a7d0b859be03ea2b Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 28 Nov 2007 11:02:01 +0000 Subject: [PATCH] nonRD fix. git-svn-id: file:///svn/unbound/trunk@785 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 2 ++ validator/val_utils.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index dd8f3d2f0..6b33330b5 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/validator/val_utils.c b/validator/val_utils.c index 8947d665c..5f29ed9bf 100644 --- a/validator/val_utils.c +++ b/validator/val_utils.c @@ -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 */ -- 2.47.2