summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-07-12 18:58:23 +0000
committerBrian Feldman <green@FreeBSD.org>1999-07-12 18:58:23 +0000
commit24ad8fe5196f37242be2f2c9d78f34ddbabc4296 (patch)
tree172a03203ace6cdc3afafd9329a215490f39976b
parent2dd1e9f4e1942b3d124aabf5e4e56b15fe93cd1a (diff)
Notes
-rw-r--r--sys/netinet/in_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 87d8c457a7ef..bc48c3bd31b1 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)in_pcb.c 8.4 (Berkeley) 5/24/95
- * $Id: in_pcb.c,v 1.50 1999/06/17 23:54:50 green Exp $
+ * $Id: in_pcb.c,v 1.51 1999/06/25 23:46:47 pb Exp $
*/
#include <sys/param.h>
@@ -202,7 +202,7 @@ in_pcbbind(inp, nam, p)
return (EACCES);
if (p && p->p_prison)
prison = 1;
- if (so->so_cred &&
+ if (so->so_cred && so->so_cred->p_ruid != 0 &&
!IN_MULTICAST(ntohl(sin->sin_addr.s_addr))) {
t = in_pcblookup_local(inp->inp_pcbinfo,
sin->sin_addr, lport,