aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-04-27 11:18:52 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-04-27 11:18:52 +0000
commitf711d546d27edc6115841ef780df0252d44a996d (patch)
treed19d0988b873086bf6eda1c6543fc9257015af3d /sys/netinet/in_pcb.c
parentd5483ddfbae9694934b27c4e7f23a4f0d3e0f5f4 (diff)
Notes
Diffstat (limited to 'sys/netinet/in_pcb.c')
-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 cdd5a604a12f..7788c9b13d14 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.46 1998/12/07 21:58:37 archie Exp $
+ * $Id: in_pcb.c,v 1.47 1999/01/27 22:42:24 dillon Exp $
*/
#include <sys/param.h>
@@ -195,7 +195,7 @@ in_pcbbind(inp, nam, p)
/* GROSS */
if (ntohs(lport) < IPPORT_RESERVED && p &&
- suser(p->p_ucred, &p->p_acflag))
+ suser(p))
return (EACCES);
if (so->so_uid &&
!IN_MULTICAST(ntohl(sin->sin_addr.s_addr))) {
@@ -227,7 +227,7 @@ in_pcbbind(inp, nam, p)
last = ipport_hilastauto;
lastport = &pcbinfo->lasthi;
} else if (inp->inp_flags & INP_LOWPORT) {
- if (p && (error = suser(p->p_ucred, &p->p_acflag)))
+ if (p && (error = suser(p)))
return error;
first = ipport_lowfirstauto; /* 1023 */
last = ipport_lowlastauto; /* 600 */