]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
nonRD fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 28 Nov 2007 11:02:01 +0000 (11:02 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 28 Nov 2007 11:02:01 +0000 (11:02 +0000)
git-svn-id: file:///svn/unbound/trunk@785 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
validator/val_utils.c

index dd8f3d2f0e18a620438bdec07e904f479d7acd9e..6b33330b57fa5f1ce933a716f033a1b72b2406c6 100644 (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.
index 8947d665c1ae7a45551871328093b95512ffb6c9..5f29ed9bf7f74e82176b82d77b3cfadf2242b09b 100644 (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 */