Fill msg_len for the initial element of msgvec.

Submitted by:	Daniel Salzman <daniel.salzman@nic.cz>
MFC after:	3 days
This commit is contained in:
kib 2016-10-11 11:45:12 +00:00
parent 0eeac369c3
commit 3fa6490743

View File

@ -69,6 +69,8 @@ recvmmsg(int s, struct mmsghdr *__restrict msgvec, size_t vlen, int flags,
if (ret == -1)
return (ret);
msgvec[0].msg_len = ret;
/*
* Do non-blocking receive for second and later messages if
* WAITFORONE is set.