svn commit: r211138 - stable/8/sys/compat/freebsd32
Konstantin Belousov
kib at FreeBSD.org
Tue Aug 10 10:15:35 UTC 2010
Author: kib
Date: Tue Aug 10 10:15:34 2010
New Revision: 211138
URL: http://svn.freebsd.org/changeset/base/211138
Log:
MFC r210796:
When compat32 recvmsg(2) does not need to copy out control messages, set
msg_controllen to 0.
PR: kern/149227
Modified:
stable/8/sys/compat/freebsd32/freebsd32_misc.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cam/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- stable/8/sys/compat/freebsd32/freebsd32_misc.c Tue Aug 10 09:24:19 2010 (r211137)
+++ stable/8/sys/compat/freebsd32/freebsd32_misc.c Tue Aug 10 10:15:34 2010 (r211138)
@@ -1062,6 +1062,8 @@ freebsd32_recvmsg(td, uap)
if (control != NULL)
error = freebsd32_copy_msg_out(&msg, control);
+ else
+ msg.msg_controllen = 0;
if (error == 0)
error = freebsd32_copyoutmsghdr(&msg, uap->msg);
More information about the svn-src-all
mailing list