]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Revert "toDNSString inexplicably did a toLower() on what it wrote it, potentially...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 9 Dec 2015 18:08:37 +0000 (19:08 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 9 Dec 2015 18:08:37 +0000 (19:08 +0100)
This reverts commit 6d04b73457106e0fbbce7846ea808cd4f4ab7c3b.

pdns/dnsname.cc

index 3d4ab7309d1d8a7277a995ce3e9e0326d2a8fc26..cfd38efa023c72ef345e70e25e97597408c4fd35 100644 (file)
@@ -115,7 +115,9 @@ std::string DNSName::toDNSString() const
   if (empty())
     throw std::out_of_range("Attempt to DNSString an unset dnsname");
 
-  return std::string(d_storage.c_str(), d_storage.length()); // this lowercased.. but why?!
+  string ret(d_storage.c_str(), d_storage.length());
+  return toLower(ret); // toLower or not toLower, that is the question
+  // return ret;
 }
 
 /**