]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #1749: With harden-referral-path: performance drops, due to
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Oct 2017 07:22:58 +0000 (07:22 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Oct 2017 07:22:58 +0000 (07:22 +0000)
  circular dependency in NS and DS lookups.

git-svn-id: file:///svn/unbound/trunk@4372 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iterator.c

index 8cf73dfb088ef75e2a8c36f68ac5ebafa79c7312..68ac8646d5ce36fc9bda9015df688dbb09779c0a 100644 (file)
@@ -1,3 +1,7 @@
+11 October 2017: Wouter 
+       - Fix #1749: With harden-referral-path: performance drops, due to
+         circular dependency in NS and DS lookups.
+
 10 October 2017: Wouter 
        - tag 1.6.7
        - trunk has version 1.6.8.
index 6c49709adea3d31317e785d861445153b2947289..d67d8eb3683020e5345ad23a43ae834128a914c4 100644 (file)
@@ -914,6 +914,9 @@ generate_ns_check(struct module_qstate* qstate, struct iter_qstate* iq, int id)
                generate_a_aaaa_check(qstate, iq, id);
                return;
        }
+       /* no need to get the NS record for DS, it is above the zonecut */
+       if(qstate->qinfo.qtype == LDNS_RR_TYPE_DS)
+               return;
 
        log_nametypeclass(VERB_ALGO, "schedule ns fetch", 
                iq->dp->name, LDNS_RR_TYPE_NS, iq->qchase.qclass);