summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-05-06 08:52:17 +0000
committermpi <mpi@openbsd.org>2015-05-06 08:52:17 +0000
commit4051c3a3c78e23cd366609d7ebdcc994bc1f08b2 (patch)
tree67f4d98363c04bbbcccb8d0f06f17fa5f8cf7da3 /sys/compat/linux/linux_socket.c
parentuse res_hnok() to valid domain part in valid_domain() (diff)
downloadwireguard-openbsd-4051c3a3c78e23cd366609d7ebdcc994bc1f08b2.tar.xz
wireguard-openbsd-4051c3a3c78e23cd366609d7ebdcc994bc1f08b2.zip
Pass a thread pointer instead of its file descriptor table to getsock(9).
Diff from Vitaliy Makkoveev. Manpage tweak and ok millert@
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 1c16aab6a5b..1777f1fd43b 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.60 2015/01/30 23:38:49 millert Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.61 2015/05/06 08:52:17 mpi Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -937,7 +937,7 @@ linux_setsockopt(p, v, retval)
if ((error = copyin((caddr_t) uap, (caddr_t) &lsa, sizeof lsa)))
return error;
- if ((error = getsock(p->p_fd, lsa.s, &fp)) != 0)
+ if ((error = getsock(p, lsa.s, &fp)) != 0)
return error;
level = linux_to_bsd_sopt_level(lsa.level);