From bca7b789e1add05c375855e18b2e770ee75182f9 Mon Sep 17 00:00:00 2001 From: phonedph1 Date: Tue, 4 Sep 2018 22:06:32 +0000 Subject: [PATCH] Print possibly empty dnsnames safer; this one shouldn't be reachable - I think - but convert anyways --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index b8fcd6e9c2..ac94aa7fb4 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -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; -- 2.47.2