From: bert hubert Date: Fri, 2 Jan 2015 09:54:08 +0000 (+0100) Subject: improve packet too short error message X-Git-Tag: rec-3.7.0-rc1~67^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d06e6c8b23d0476d6c98d521e2dab8bd1aad4fc8;p=pdns improve packet too short error message --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 1106f7da4..b1b06a97e 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -1,6 +1,6 @@ /* PowerDNS Versatile Database Driven Nameserver - Copyright (C) 2001 - 2011 PowerDNS.COM BV + Copyright (C) 2001 - 2015 PowerDNS.COM BV This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as @@ -421,8 +421,8 @@ int DNSPacket::noparse(const char *mesg, int length) { d_rawpacket.assign(mesg,length); if(length < 12) { - L << Logger::Warning << "Ignoring packet: too short from " - << getRemote() << endl; + L << Logger::Warning << "Ignoring packet: too short ("<