mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 11:45:13 +00:00
fix regression in recvmmsg with no timeout
somewhat analogous to commit d0b547dfb5
,
but here the omission of the null timeout check was in the time64
syscall code path. this code is not yet used except on x32.
This commit is contained in:
parent
7590203c48
commit
37d6d09ec6
@ -22,7 +22,7 @@ int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int fla
|
||||
int r = -ENOSYS;
|
||||
if (SYS_recvmmsg == SYS_recvmmsg_time64 || !IS32BIT(s))
|
||||
r = __syscall_cp(SYS_recvmmsg_time64, fd, msgvec, vlen, flags,
|
||||
((long long[]){s, ns}));
|
||||
timeout ? ((long long[]){s, ns}) : 0);
|
||||
if (SYS_recvmmsg == SYS_recvmmsg_time64 || r!=-ENOSYS)
|
||||
return __syscall_ret(r);
|
||||
return syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags,
|
||||
|
Loading…
Reference in New Issue
Block a user