From 7ae71e06cbed201cffdef3274b600002b9411f45 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 10 Jul 2015 11:46:35 +0200 Subject: [PATCH] DNSName: fix dnsreplay.cc --- pdns/dnsreplay.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/dnsreplay.cc b/pdns/dnsreplay.cc index 582de7d49..47979ce98 100644 --- a/pdns/dnsreplay.cc +++ b/pdns/dnsreplay.cc @@ -268,7 +268,7 @@ bool isRcodeOk(int rcode) return rcode==0 || rcode==3; } -set > s_origbetterset; +set > s_origbetterset; bool isRootReferral(const MOADNSParser::answers_t& answers) { @@ -280,7 +280,7 @@ bool isRootReferral(const MOADNSParser::answers_t& answers) // cerr<<(int)iter->first.d_place<<", "<first.d_label<<" "<first.d_type<<", # "<first.d_place!=2) ok=false; - if(iter->first.d_label!="." || iter->first.d_type!=QType::NS) + if(!iter->first.d_label.isRoot() || iter->first.d_type!=QType::NS) ok=false; } return ok; @@ -372,17 +372,17 @@ void measureResultAndClean(qids_t::const_iterator iter) s_origbetter++; if(!g_quiet) if(s_origbetterset.insert(make_pair(qd.d_qi.d_qname, qd.d_qi.d_qtype)).second) { - cout<<"orig better: " << qd.d_qi.d_qname<<" "<< qd.d_qi.d_qtype<::const_iterator i=canonicOrig.begin(); i!=canonicOrig.end(); ++i) - cout<<"\t"<d_label<<"\t"<d_type)<<"\t'" << (i->d_content ? i->d_content->getZoneRepresentation() : "") <<"'\n"; + cout<<"\t"<d_label.toString()<<"\t"<d_type)<<"\t'" << (i->d_content ? i->d_content->getZoneRepresentation() : "") <<"'\n"; cout<<"new: rcode="<::const_iterator i=canonicNew.begin(); i!=canonicNew.end(); ++i) - cout<<"\t"<d_label<<"\t"<d_type)<<"\t'" << (i->d_content ? i->d_content->getZoneRepresentation() : "") <<"'\n"; + cout<<"\t"<d_label.toString()<<"\t"<d_type)<<"\t'" << (i->d_content ? i->d_content->getZoneRepresentation() : "") <<"'\n"; cout<<"\n"; cout<<"-\n"; @@ -421,7 +421,7 @@ try qids_by_id_index_t::const_iterator found=idindex.find(ntohs(mdp.d_header.id)); if(found == idindex.end()) { if(!g_quiet) - cout<<"Received an answer ("<