From 5ad3bbb27f45e11a08a3d23c3f55b34b7f0556f7 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 17 Oct 2017 07:22:58 +0000 Subject: [PATCH] - Fix #1749: With harden-referral-path: performance drops, due to circular dependency in NS and DS lookups. git-svn-id: file:///svn/unbound/trunk@4372 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 4 ++++ iterator/iterator.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 8cf73dfb0..68ac8646d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/iterator/iterator.c b/iterator/iterator.c index 6c49709ad..d67d8eb36 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -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);