diff options
| author | ad <ad@NetBSD.org> | 2006-07-23 22:06:03 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2006-07-23 22:06:03 +0000 |
| commit | f474dceb13c3c678cc12a81cf14f7448a5e6bca7 (patch) | |
| tree | 2e9a4ca54c22bfea932b7fddcd5135f8d639a6e8 /sys/compat/linux/common/linux_socket.c | |
| parent | 8a487b533dd09b33d58273719df7c9abf8a9042b (diff) | |
Use the LWP cached credentials where sane.
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 7fcae5753b3..cbf4a89660c 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.64 2006/06/27 09:09:40 pavel Exp $ */ +/* $NetBSD: linux_socket.c,v 1.65 2006/07/23 22:06:09 ad Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.64 2006/06/27 09:09:40 pavel Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.65 2006/07/23 22:06:09 ad Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -1530,7 +1530,7 @@ linux_sa_get(l, s, sgp, sap, osa, osalen) !IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))) { sin6->sin6_scope_id = 0; } else { - int uid = p->p_cred ? kauth_cred_geteuid(p->p_cred) : -1; + int uid = l->l_cred ? kauth_cred_geteuid(l->l_cred) : -1; log(LOG_DEBUG, "pid %d (%s), uid %d: obsolete pre-RFC2553 " |
