From 1722d283bd3cf119870988213e9052bf0312a3e3 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 14 Sep 2020 10:56:40 +0200 Subject: [PATCH] Make code more clear by eliminating the "ancestor" as suggested by @rgacogne --- pdns/syncres.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 2b06197fec..1973bd8b1a 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -737,16 +737,16 @@ int SyncRes::doResolve(const DNSName &qname, const QType &qtype, vector 0 && bestns[0].d_name.isPartOf(fwdomain)) ? - bestns[0].d_name : fwdomain); - if (forwarded) { - QLOG("Step1 Final Ancestor (using forwarding info) is " << ancestor); - } - - child = ancestor; unsigned int targetlen = std::min(child.countLabels() + (i > 3 ? 3 : 1), qnamelen); -- 2.47.2