From: bert hubert Date: Mon, 4 Jan 2016 07:08:14 +0000 (+0100) Subject: silence warning on vinfolog else confusion X-Git-Tag: dnsdist-1.0.0-alpha2~127^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a271e940a294a3d86a88a94d21d11ce8fbd116d;p=thirdparty%2Fpdns.git silence warning on vinfolog else confusion --- diff --git a/pdns/dnsrulactions.hh b/pdns/dnsrulactions.hh index db5718d0c3..62d370d7bb 100644 --- a/pdns/dnsrulactions.hh +++ b/pdns/dnsrulactions.hh @@ -428,8 +428,9 @@ public: } DNSAction::Action operator()(const ComboAddress& remote, const DNSName& qname, uint16_t qtype, dnsheader* dh, uint16_t& len, string* ruleresult) const override { - if(!d_fp) + if(!d_fp) { vinfolog("Packet from %s for %s %s with id %d", remote.toStringWithPort(), qname.toString(), QType(qtype).getName(), dh->id); + } else { string out = qname.toDNSString(); fwrite(out.c_str(), 1, out.size(), d_fp);