Date: Fri, 14 Oct 2016 09:29:00 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r307311 - stable/11/lib/libc/gen Message-ID: <201610140929.u9E9T0Ew012935@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Oct 14 09:28:59 2016 New Revision: 307311 URL: https://svnweb.freebsd.org/changeset/base/307311 Log: MFC r307036: Fill msg_len for the initial element of msgvec. Modified: stable/11/lib/libc/gen/recvmmsg.c Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/libc/gen/recvmmsg.c ============================================================================== --- stable/11/lib/libc/gen/recvmmsg.c Fri Oct 14 09:10:41 2016 (r307310) +++ stable/11/lib/libc/gen/recvmmsg.c Fri Oct 14 09:28:59 2016 (r307311) @@ -69,6 +69,8 @@ recvmmsg(int s, struct mmsghdr *__restri if (ret == -1) return (ret); + msgvec[0].msg_len = ret; + /* * Do non-blocking receive for second and later messages if * WAITFORONE is set.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610140929.u9E9T0Ew012935>