]> granicus.if.org Git - pdns/commitdiff
toDNSString inexplicably did a toLower() on what it wrote it, potentially causing...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 9 Dec 2015 12:56:50 +0000 (13:56 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 9 Dec 2015 12:56:50 +0000 (13:56 +0100)
pdns/dnsname.cc

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