]> granicus.if.org Git - pdns/commitdiff
oops, I means fix for ticket #21 - original text:
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2005 19:59:00 +0000 (19:59 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2005 19:59:00 +0000 (19:59 +0000)
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

index e1dc2078dc9a35cced16e00a5dd149bc590e0b81..b1cd1b5c6dcc0b5bfec81820ab9c3c7ebbdca45a 100644 (file)
@@ -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 <cstdio>
 
@@ -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;
     }