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. _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"