summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-11-06 18:12:43 +0000
committerps <ps@FreeBSD.org>2005-11-06 18:12:43 +0000
commit0bae323c8afdc4d978f8a77447447e04e50243e8 (patch)
treed6f3126f146501833b9d5fe1e01b4f8fdd74a171 /sys/compat
parent35f17c1d45010f9052dc8615a988615b4d856ba5 (diff)
downloadFreeBSD-src-0bae323c8afdc4d978f8a77447447e04e50243e8.zip
FreeBSD-src-0bae323c8afdc4d978f8a77447447e04e50243e8.tar.gz
Copy out the number of iovecs in freebsd32_recvmsg, not the length
of a single iovec.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 417656b..114c6f4 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1033,7 +1033,7 @@ freebsd32_recvmsg(td, uap)
error = freebsd32_copyoutmsghdr(&msg, uap->msg);
if (error == 0)
- error = freebsd32_copyoutiov(iov, iov->iov_len,
+ error = freebsd32_copyoutiov(iov, m32.msg_iovlen,
(struct iovec32 *)(uintptr_t)m32.msg_iov, EMSGSIZE);
}
free(iov, M_IOV);
OpenPOWER on IntegriCloud