Author: kib Date: Tue Oct 11 11:45:12 2016 New Revision: 307036 URL: https://svnweb.freebsd.org/changeset/base/307036
Log: Fill msg_len for the initial element of msgvec. Submitted by: Daniel Salzman <daniel.salz...@nic.cz> MFC after: 3 days Modified: head/lib/libc/gen/recvmmsg.c Modified: head/lib/libc/gen/recvmmsg.c ============================================================================== --- head/lib/libc/gen/recvmmsg.c Tue Oct 11 09:19:30 2016 (r307035) +++ head/lib/libc/gen/recvmmsg.c Tue Oct 11 11:45:12 2016 (r307036) @@ -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-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"