diff options
author | brian <brian@FreeBSD.org> | 1999-03-29 08:21:28 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-03-29 08:21:28 +0000 |
commit | 539d220871d789543afc7e3744e712d33128ca1b (patch) | |
tree | 22cddce0f60f9ee116dd5d869726e4f1b301b5ee /usr.sbin/ppp/fsm.c | |
parent | 1d23653385b701e6ef13bbbe4fb216bab202b990 (diff) | |
download | FreeBSD-src-539d220871d789543afc7e3744e712d33128ca1b.zip FreeBSD-src-539d220871d789543afc7e3744e712d33128ca1b.tar.gz |
Ensure that the thing we're casting to struct ip
is aligned for non-i386 architectures.
Diffstat (limited to 'usr.sbin/ppp/fsm.c')
-rw-r--r-- | usr.sbin/ppp/fsm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index 149087c..db4be6d 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: fsm.c,v 1.39 1999/02/26 21:28:11 brian Exp $ + * $Id: fsm.c,v 1.40 1999/03/01 02:52:39 brian Exp $ * * TODO: */ @@ -826,6 +826,7 @@ FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) struct physical *p = link2physical(fp->link); u_short *sp, proto; + bp = mbuf_Contiguous(bp); sp = (u_short *)MBUF_CTOP(bp); proto = ntohs(*sp); log_Printf(fp->LogLevel, "%s: -- Protocol 0x%04x (%s) was rejected!\n", |