From 4fefd3d137d34d9b42f8e414efff28e4a015dfd4 Mon Sep 17 00:00:00 2001 From: jkim Date: Mon, 8 Jun 2015 20:03:15 +0000 Subject: Properly initialize flags for accept4(2) not to return spurious EINVAL. Note this fixes a Linuxulator regression introduced in r283490. PR: 200662 --- sys/compat/linux/linux_socket.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') 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); -- cgit v1.1