From 506df56c79f29dd0863b11a7c16b05b87b831854 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Sun, 6 Nov 2005 18:12:43 +0000 Subject: [PATCH] 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(-) diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 417656b0a237..114c6f46287e 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);