summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-06 08:52:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-06 08:52:18 +0000
commit8f2a148defd52c6da0a494bb438b7a28770e3ab4 (patch)
treed0d876ee42d47875ce530966f76784cffff4c4ab /sys/compat/linux/linux_socket.c
parent746365a6fd9d6c01b6c711d8e9cd45287b33deab (diff)
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);