From 0bae323c8afdc4d978f8a77447447e04e50243e8 Mon Sep 17 00:00:00 2001 From: ps Date: Sun, 6 Nov 2005 18:12:43 +0000 Subject: Copy out the number of iovecs in freebsd32_recvmsg, not the length of a single iovec. --- sys/compat/freebsd32/freebsd32_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat') 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); -- cgit v1.1