]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
silence warning on vinfolog else confusion
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 4 Jan 2016 07:08:14 +0000 (08:08 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 4 Jan 2016 07:08:14 +0000 (08:08 +0100)
pdns/dnsrulactions.hh

index db5718d0c3c1f8f9f6d51f3b20e32740f486801e..62d370d7bb43f7110c9f6fedd1cfbc6bba573603 100644 (file)
@@ -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);