From 5ad5bb7d460c5a26adbf8780ac2255aec3f8c692 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 28 Jun 2016 11:38:20 +0200 Subject: [PATCH] Use toLogString when creating a logstring with a DNSName in the recursor --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 7a5e104a6..9042550b8 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -607,7 +607,7 @@ void updateResponseStats(int res, const ComboAddress& remote, unsigned int packe static string makeLoginfo(DNSComboWriter* dc) try { - return "("+dc->d_mdp.d_qname.toString()+"/"+DNSRecordContent::NumberToType(dc->d_mdp.d_qtype)+" from "+(dc->d_remote.toString())+")"; + return "("+dc->d_mdp.d_qname.toLogString()+"/"+DNSRecordContent::NumberToType(dc->d_mdp.d_qtype)+" from "+(dc->d_remote.toString())+")"; } catch(...) { -- 2.40.0