From 0a271e940a294a3d86a88a94d21d11ce8fbd116d Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 4 Jan 2016 08:08:14 +0100 Subject: [PATCH] silence warning on vinfolog else confusion --- pdns/dnsrulactions.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2