diff options
author | brian <brian@cvs.openbsd.org> | 1999-07-10 00:08:53 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1999-07-10 00:08:53 +0000 |
commit | 9d6ed45acf5fc39ca847c0cf1edb373b53530ced (patch) | |
tree | 65c249ef273b48e4bfd470c1e62d0f255e33f321 | |
parent | 09270d5990db8eddbefff4be0ac1d913dd9774be (diff) |
Leap through one more hoop to avoid alignment problems.
-rw-r--r-- | usr.sbin/ppp/ppp/slcompress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/slcompress.c b/usr.sbin/ppp/ppp/slcompress.c index 34dffbb28dd..d000f2e1595 100644 --- a/usr.sbin/ppp/ppp/slcompress.c +++ b/usr.sbin/ppp/ppp/slcompress.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: slcompress.c,v 1.7 1999/05/09 20:04:03 brian Exp $ + * $Id: slcompress.c,v 1.8 1999/07/10 00:08:52 brian Exp $ * * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: * - Initial distribution. @@ -558,7 +558,7 @@ sl_uncompress_tcp(u_char ** bufp, int len, u_int type, struct slcompress *comp, /* Watch out for alighment problems.... */ sum = ~changes; - bp = &((struct ip *)cp)->ip_sum; + bp = (u_short *)(cp + (int)&((struct ip *)0)->ip_sum); memcpy(bp, &sum, sizeof *bp); } return (len); |