summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-23 01:40:40 +0000
committeralex <alex@FreeBSD.org>1997-12-23 01:40:40 +0000
commit064cf03a2254e667c3349453d1355b789b266c50 (patch)
tree57be9f3a9c428e66182e2bc1238002bfa6df39d6 /sys/netinet/in_pcb.c
parentcbab4c91474f8ce412a9c5a34b3eb36cc62f147b (diff)
downloadFreeBSD-src-064cf03a2254e667c3349453d1355b789b266c50.zip
FreeBSD-src-064cf03a2254e667c3349453d1355b789b266c50.tar.gz
Removed unnecessary setting of 'error' -- binding to a privileged port
by a non-root user always returns EACCES.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-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 3aa28e9..5a46709 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.34 1997/08/16 19:15:36 wollman Exp $
+ * $Id: in_pcb.c,v 1.35 1997/10/28 15:58:42 bde Exp $
*/
#include <sys/param.h>
@@ -184,7 +184,7 @@ in_pcbbind(inp, nam, p)
/* GROSS */
if (ntohs(lport) < IPPORT_RESERVED && p &&
- (error = suser(p->p_ucred, &p->p_acflag)))
+ suser(p->p_ucred, &p->p_acflag))
return (EACCES);
t = in_pcblookup(inp->inp_pcbinfo, zeroin_addr, 0,
sin->sin_addr, lport, wild);
OpenPOWER on IntegriCloud