Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/netinet6 Pull up revision 1.14 (requested by itojun...
details: https://anonhg.NetBSD.org/src/rev/b49a01e10903
branches: netbsd-1-6
changeset: 529044:b49a01e10903
user: lukem <lukem%NetBSD.org@localhost>
date: Tue Aug 27 09:33:27 2002 +0000
description:
Pull up revision 1.14 (requested by itojun in ticket #731):
pass proc * to in6_pcbsetport. PR 18073
diffstat:
sys/netinet6/in6_src.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r c980fb8ef890 -r b49a01e10903 sys/netinet6/in6_src.c
--- a/sys/netinet6/in6_src.c Tue Aug 27 09:33:18 2002 +0000
+++ b/sys/netinet6/in6_src.c Tue Aug 27 09:33:27 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_src.c,v 1.10 2002/01/22 03:53:56 itojun Exp $ */
+/* $NetBSD: in6_src.c,v 1.10.10.1 2002/08/27 09:33:27 lukem Exp $ */
/* $KAME: in6_src.c,v 1.36 2001/02/06 04:08:17 itojun Exp $ */
/*
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.10 2002/01/22 03:53:56 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.10.10.1 2002/08/27 09:33:27 lukem Exp $");
#include "opt_inet.h"
@@ -335,9 +335,10 @@
* Find an empty port and set it to the specified PCB.
*/
int
-in6_pcbsetport(laddr, in6p)
+in6_pcbsetport(laddr, in6p, p)
struct in6_addr *laddr;
struct in6pcb *in6p;
+ struct proc *p;
{
struct socket *so = in6p->in6p_socket;
struct in6pcb *head = in6p->in6p_head;
@@ -354,8 +355,6 @@
if (in6p->in6p_flags & IN6P_LOWPORT) {
#ifndef IPNOPRIVPORTS
- struct proc *p = curproc; /* XXX */
-
if (p == 0 || (suser(p->p_ucred, &p->p_acflag) != 0))
return (EACCES);
#endif
Home |
Main Index |
Thread Index |
Old Index