From: Peter van Dijk Date: Tue, 3 Jun 2025 11:36:02 +0000 (+0200) Subject: we were always one dot short X-Git-Tag: dnsdist-2.1.0-alpha0~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1102a84ea41e4830a7638140035e9ef354784eb4;p=thirdparty%2Fpdns.git we were always one dot short --- diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index 13c5cdb19e..cac9b64640 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -835,10 +835,7 @@ std::string ZoneName::toStringFull(const std::string& separator, const bool trai if (!trailing) { ret.push_back('.'); } - // toString of root emits "" if no trailing, "." if trailing - if (d_name.isRoot()) { - ret.push_back('.'); - } + ret.push_back('.'); ret += d_variant; } return ret;