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/cbcp.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/cbcp.c')
-rw-r--r-- | usr.sbin/ppp/cbcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/cbcp.c b/usr.sbin/ppp/cbcp.c index 446f464..a901ef9 100644 --- a/usr.sbin/ppp/cbcp.c +++ b/usr.sbin/ppp/cbcp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cbcp.c,v 1.9 1999/01/28 01:56:30 brian Exp $ + * $Id: cbcp.c,v 1.10 1999/02/26 21:28:07 brian Exp $ */ #include <sys/param.h> @@ -608,6 +608,7 @@ cbcp_Input(struct physical *p, struct mbuf *bp) struct cbcp *cbcp = &p->dl->cbcp; int len; + bp = mbuf_Contiguous(bp); len = mbuf_Length(bp); if (len < sizeof(struct cbcp_header)) { mbuf_Free(bp); |