]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
offset bugs
authorwessels <>
Sun, 18 Apr 1999 12:02:55 +0000 (12:02 +0000)
committerwessels <>
Sun, 18 Apr 1999 12:02:55 +0000 (12:02 +0000)
lib/rfc1035.c

index 7b51ed89467da6e178ae00f9ec1c08678835595e..83009d11f3f7a8bdee2a1b4599da9ad0bda2679b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rfc1035.c,v 1.7 1999/04/18 05:48:05 wessels Exp $
+ * $Id: rfc1035.c,v 1.8 1999/04/18 06:02:55 wessels Exp $
  *
  * Low level DNS protocol routines
  * AUTHOR: Duane Wessels
@@ -333,7 +333,7 @@ rfc1035RRUnpack(const char *buf, size_t sz, off_t off, rfc1035_rr * RR)
        memcpy(RR->rdata, buf + off, RR->rdlength);
        break;
     }
-    off += RR->rdlength;
+    off += ntohs(s);
     assert(off <= sz);
     return off;
 }