]> granicus.if.org Git - pdns/commitdiff
Use toStringRootDot semantics for toLogString
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 28 Jun 2016 12:41:01 +0000 (14:41 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 1 Jul 2016 12:34:57 +0000 (14:34 +0200)
pdns/dnsname.cc

index defbd37520f1ba6b87b4d536bb07109441a9821a..7bac16fd2e83cb76fc1f2c0931a170e5444e0ac7 100644 (file)
@@ -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