From: Bert Hubert Date: Tue, 11 Jan 2005 19:59:00 +0000 (+0000) Subject: oops, I means fix for ticket #21 - original text: X-Git-Tag: pdns-2.9.17~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=144e852820a7bf6eb23178d2b980026fcf83a1f3;p=pdns 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 --- 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; }