diff options
author | jkim <jkim@FreeBSD.org> | 2015-06-08 20:03:15 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2015-06-08 20:03:15 +0000 |
commit | 4fefd3d137d34d9b42f8e414efff28e4a015dfd4 (patch) | |
tree | f07d777a6ef7322464100cf3820fe93392b488dc /sys | |
parent | 3f1876f2b922ae783cfe58196ba4e2a9a6958da4 (diff) | |
download | FreeBSD-src-4fefd3d137d34d9b42f8e414efff28e4a015dfd4.zip FreeBSD-src-4fefd3d137d34d9b42f8e414efff28e4a015dfd4.tar.gz |
Properly initialize flags for accept4(2) not to return spurious EINVAL.
Note this fixes a Linuxulator regression introduced in r283490.
PR: 200662
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/linux/linux_socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 7d52943..34d69ff 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -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); |