diff options
| author | 2015-05-06 08:52:17 +0000 | |
|---|---|---|
| committer | 2015-05-06 08:52:17 +0000 | |
| commit | 4051c3a3c78e23cd366609d7ebdcc994bc1f08b2 (patch) | |
| tree | 67f4d98363c04bbbcccb8d0f06f17fa5f8cf7da3 /sys/compat/linux/linux_socket.c | |
| parent | use res_hnok() to valid domain part in valid_domain() (diff) | |
| download | wireguard-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.c | 4 |
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); |
