From 52683ca3c6fe38ba6243b25e418dfce446dd6100 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 13 Jul 2015 15:51:23 +0200 Subject: [PATCH] syncres.cc: replace '=="."' with '.isRoot()' --- pdns/syncres.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index eda5eaeaae..b0994a3120 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -394,7 +394,7 @@ int SyncRes::doResolve(const DNSName &qname, const QType &qtype, vectornegcache.find(tie(getLastLabel(qname), qtnull))) != t_sstorage->negcache.end() && - range.first->d_qname=="." && (uint32_t)d_now.tv_sec < range.first->d_ttd ) { + range.first->d_qname.isRoot() && (uint32_t)d_now.tv_sec < range.first->d_ttd ) { sttl=range.first->d_ttd - d_now.tv_sec; LOG(prefix<d_name.toString()<<"' & '"<d_qname.toString()<<"' for another "< nameservers, DNSName auth, bool flawedNSSe ne.d_qtype=QType(0); // this encodes 'whole record' replacing_insert(t_sstorage->negcache, ne); - if(s_rootNXTrust && auth==".") { + if(s_rootNXTrust && auth.isRoot()) { ne.d_name = getLastLabel(ne.d_name); replacing_insert(t_sstorage->negcache, ne); } -- 2.47.3