From 144e852820a7bf6eb23178d2b980026fcf83a1f3 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 11 Jan 2005 19:59:00 +0000 Subject: [PATCH] oops, I means fix for ticket #21 - original text: partial fix: the real fix is to redo the packet parsing system, which I've done, but needs to be merged. Thanks anonymous user! (by the way, I made the Exact same mistake in the completely redesigned parser, odd eh?) git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@270 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/dnspacket.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index e1dc2078d..b1cd1b5c6 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -16,7 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -// $Id: dnspacket.cc,v 1.31 2005/01/11 19:57:20 ahu Exp $ +// $Id: dnspacket.cc,v 1.32 2005/01/11 19:59:00 ahu Exp $ #include "utility.hh" #include @@ -107,7 +107,7 @@ int DNSPacket::expand(const unsigned char *begin, const unsigned char *end, stri if((n & 0xc0) == 0xc0 ) { unsigned int labelOffset=(n&~0xc0)*256+ (int)*(unsigned char *)p; - expand((unsigned char *)stringbuffer.c_str()+labelOffset,end,expanded,++depth); + expand((unsigned char *)stringbuffer.c_str()+labelOffset,end,expanded,++depth); // was cvstrac ticket #21 return 1+p-begin; } -- 2.49.0