Copy out the number of iovecs in freebsd32_recvmsg, not the length

of a single iovec.
This commit is contained in:
Paul Saab 2005-11-06 18:12:43 +00:00
parent 2b6ca0f6a5
commit 506df56c79

View File

@ -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);