From: Pieter Lexis Date: Tue, 28 Jun 2016 12:41:01 +0000 (+0200) Subject: Use toStringRootDot semantics for toLogString X-Git-Tag: rec-4.0.0~22^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a724f9553c3f8dd0fc5f0ef65f5a3276d674f46a;p=thirdparty%2Fpdns.git Use toStringRootDot semantics for toLogString --- diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index defbd37520..7bac16fd2e 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -157,15 +157,7 @@ std::string DNSName::toLogString() const return "(empty)"; } - if(isRoot()) - return "."; - - std::string ret; - for(const auto& s : getRawLabels()) { - ret+= escapeLabel(s) + "."; - } - - return ret; + return toStringRootDot(); } std::string DNSName::toDNSString() const