From 34dcd30c4dc1cee2247d268ff18f881756cb1923 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sat, 7 Nov 2015 18:25:57 +0200 Subject: [PATCH] Print empty when DNSName is empty --- pdns/syncres.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 719fe1a30..d4a696776 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -847,7 +847,7 @@ inline vector SyncRes::shuffleInSpeedOrder(set &tnameservers, LOG(endl<toString()<<"(" << (boost::format("%0.2f") % (speeds[*i]/1000.0)).str() <<"ms)"); + LOG((i->empty() ? string("") : i->toString())<<"(" << (boost::format("%0.2f") % (speeds[*i]/1000.0)).str() <<"ms)"); } LOG(endl); } @@ -1181,7 +1181,7 @@ int SyncRes::doResolveAt(set nameservers, DNSName auth, bool flawedNSSe for(auto& rec : lwr.d_records) { if(rec.d_place==DNSResourceRecord::AUTHORITY && rec.d_type==QType::SOA && lwr.d_rcode==RCode::NXDomain && qname.isPartOf(rec.d_name) && rec.d_name.isPartOf(auth)) { - LOG(prefix<