diff options
author | dg <dg@FreeBSD.org> | 1996-04-11 08:24:04 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-04-11 08:24:04 +0000 |
commit | c86a38ea153b3f55b2b984a4c1e72ba89afc55c4 (patch) | |
tree | 702b5434b3bc51f6ca1cac8a1034dd5ceec800ee /usr.sbin/ppp | |
parent | 7b2dcb887c3c20b2732bdc8ba43a11616680746b (diff) | |
download | FreeBSD-src-c86a38ea153b3f55b2b984a4c1e72ba89afc55c4.zip FreeBSD-src-c86a38ea153b3f55b2b984a4c1e72ba89afc55c4.tar.gz |
Fix editing mistake in last commit...sorry.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/slcompress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 0e48d52..f2536cb 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -17,13 +17,13 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: slcompress.c,v 1.4 1996/01/11 17:48:58 phk Exp $ + * $Id: slcompress.c,v 1.5 1996/04/11 08:14:44 davidg Exp $ * * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: * - Initial distribution. */ #ifndef lint -static char const rcsid[] = "$Id: slcompress.c,v 1.4 1996/01/11 17:48:58 phk Exp $"; +static char const rcsid[] = "$Id: slcompress.c,v 1.5 1996/04/11 08:14:44 davidg Exp $"; #endif #include "defs.h" @@ -437,7 +437,7 @@ sl_uncompress_tcp(bufp, len, type, comp) hlen = ip->ip_hl << 2; if (hlen + sizeof(struct tcphdr) > len) goto bad; - th = (struct tcphdr *)&((int *)ip)[hlen]; + th = (struct tcphdr *)&((char *)ip)[hlen]; hlen += THOFFSET(th) << 2; if (hlen > MAX_HDR) goto bad; |