]> granicus.if.org Git - pdns/commitdiff
Print possibly empty dnsnames safer; this one shouldn't be reachable - I think -...
authorphonedph1 <phoned@gmail.com>
Tue, 4 Sep 2018 22:06:32 +0000 (22:06 +0000)
committerphonedph1 <phoned@gmail.com>
Tue, 4 Sep 2018 22:06:32 +0000 (22:06 +0000)
pdns/syncres.cc

index b8fcd6e9c219269f471ad655c8964dea3904a32b..ac94aa7fb493204866c7ce236492f37fef7d3344 100644 (file)
@@ -403,7 +403,7 @@ uint64_t SyncRes::doDumpThrottleMap(int fd)
   {
     count++;
     // remote IP, dns name, qtype, count, ttd
-    fprintf(fp, "%s\t%s\t%d\t%u\t%s", i.first.get<0>().toString().c_str(), i.first.get<1>().toString().c_str(), i.first.get<2>(), i.second.count, ctime(&i.second.ttd));
+    fprintf(fp, "%s\t%s\t%d\t%u\t%s", i.first.get<0>().toString().c_str(), i.first.get<1>().toLogString().c_str(), i.first.get<2>(), i.second.count, ctime(&i.second.ttd));
   }
   fclose(fp);
   return count;