summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-14 10:55:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-14 10:55:12 +0000
commitf66b48a343f8e6b8ba7a0ccfe9464627b21aaf5e (patch)
tree5827cca3959e7307fd4d8e719d8af798d99ab5ce /sys/netinet
parent20b23bad3a2c9534d9423de52045125ac22d06e1 (diff)
add seperate so_euid & so_ruid to struct socket, so that identd is still fast.. Sigh. I will change this again later
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 118074916a8..ce69820bb54 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.21 1998/02/01 21:46:02 deraadt Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.22 1998/02/14 10:55:10 deraadt Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -199,10 +199,10 @@ in_pcbbind(v, nam)
if (ntohs(lport) < IPPORT_RESERVED &&
(error = suser(p->p_ucred, &p->p_acflag)))
return (EACCES);
- if (so->so_uid) {
+ if (so->so_euid) {
t = in_pcblookup(table, zeroin_addr, 0,
sin->sin_addr, lport, INPLOOKUP_WILDCARD);
- if (t && (so->so_uid != t->inp_socket->so_uid))
+ if (t && (so->so_euid != t->inp_socket->so_euid))
return (EADDRINUSE);
}
t = in_pcblookup(table, zeroin_addr, 0,