diff options
| author | christos <christos@NetBSD.org> | 2003-07-23 19:10:29 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-07-23 19:10:29 +0000 |
| commit | 91e13193eefd677a4a226148364613a0364f98b3 (patch) | |
| tree | bc5cef6d1acbb8da02228d9533ec12c46495adde /sys/compat/linux/common/linux_socket.c | |
| parent | 59b1f67a119df1fc4d9110571655da2b5efd8b5b (diff) | |
make credentials work on the i386 by passing the original msg structure.
(from Todd Vierling)
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/common/linux_socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c index 454fb89a5fe..f5d295028d7 100644 --- a/sys/compat/linux/common/linux_socket.c +++ b/sys/compat/linux/common/linux_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.46 2003/06/29 22:29:31 fvdl Exp $ */ +/* $NetBSD: linux_socket.c,v 1.47 2003/07/23 19:10:29 christos Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -47,7 +47,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.46 2003/06/29 22:29:31 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.47 2003/07/23 19:10:29 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -337,7 +337,7 @@ linux_sys_sendmsg(l, v, retval) struct msghdr msg; int error; struct sys_sendmsg_args bsa; - struct msghdr *nmsg = NULL; + struct msghdr *nmsg = SCARG(uap, msg); error = copyin(SCARG(uap, msg), (caddr_t)&msg, sizeof(msg)); if (error) |
