From: Kees Monshouwer Date: Sat, 30 Jul 2016 23:43:55 +0000 (+0200) Subject: strip trailing dot in PTR content X-Git-Tag: rec-4.0.2~31^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e37c01e2ce6e39e63bac07ec0245da304d8f30;p=thirdparty%2Fpdns.git strip trailing dot in PTR content --- diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 60eab9cef8..0d7e82dadc 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -38,6 +38,7 @@ void DNSResourceRecord::setContent(const string &cont) { case QType::CNAME: case QType::DNAME: case QType::NS: + case QType::PTR: if(!content.empty()) boost::erase_tail(content, 1); } @@ -51,6 +52,7 @@ string DNSResourceRecord::getZoneRepresentation(bool noDot) const { case QType::CNAME: case QType::DNAME: case QType::NS: + case QType::PTR: if (*(content.rbegin()) != '.') { ret<