1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Properly initialize flags for accept4(2) not to return spurious EINVAL.

Note this fixes a Linuxulator regression introduced in r283490.

PR:		200662
This commit is contained in:
Jung-uk Kim 2015-06-08 20:03:15 +00:00
parent 529b5c137e
commit 1a01bdf906
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284166

View File

@ -787,6 +787,7 @@ linux_accept_common(struct thread *td, int s, l_uintptr_t addr,
/* XXX: */
bsd_args.name = (struct sockaddr * __restrict)PTRIN(addr);
bsd_args.anamelen = PTRIN(namelen);/* XXX */
bsd_args.flags = 0;
error = linux_set_socket_flags(flags, &bsd_args.flags);
if (error != 0)
return (error);