From d06e6c8b23d0476d6c98d521e2dab8bd1aad4fc8 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 2 Jan 2015 10:54:08 +0100 Subject: [PATCH] improve packet too short error message --- pdns/dnspacket.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ("<