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:
parent
0eeac369c3
commit
3fa6490743
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user