From: wessels <> Date: Sun, 18 Apr 1999 12:02:55 +0000 (+0000) Subject: offset bugs X-Git-Tag: SQUID_3_0_PRE1~2270 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=298d5ca83a6ff73793b9e8699d980e73f3162bc5;p=thirdparty%2Fsquid.git offset bugs --- diff --git a/lib/rfc1035.c b/lib/rfc1035.c index 7b51ed8946..83009d11f3 100644 --- a/lib/rfc1035.c +++ b/lib/rfc1035.c @@ -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; }