diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-18 05:21:02 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-18 05:21:02 +0000 |
commit | 6bf59c8f3cc3be79556729edd687770035126c1e (patch) | |
tree | bcbd66543525aa3814aeccfa744245d84177fe2a /sys/netinet | |
parent | efd9b5b2701001e506716293d6c7e6bb16e9999c (diff) |
fix alignment problem in ancillary data (alpha).
only ipv6 tools (which touches ancillary data) are affected.
From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index aa082a2499b..5114a17bb3a 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.38 2000/02/07 06:09:09 itojun Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.39 2000/02/18 05:21:01 itojun Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -618,7 +618,7 @@ udp_saveopt(p, size, type) return ((struct mbuf *) NULL); cp = (struct cmsghdr *) mtod(m, struct cmsghdr *); bcopy(p, CMSG_DATA(cp), size); - size += sizeof(*cp); + size = CMSG_LEN(size); m->m_len = size; cp->cmsg_len = size; cp->cmsg_level = IPPROTO_IP; |