From: Pieter Lexis Date: Tue, 28 Jun 2016 09:38:20 +0000 (+0200) Subject: Use toLogString when creating a logstring with a DNSName in the recursor X-Git-Tag: rec-4.0.0~22^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ad5bb7d460c5a26adbf8780ac2255aec3f8c692;p=pdns Use toLogString when creating a logstring with a DNSName in the recursor --- 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(...) {