mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Removed unnecessary setting of 'error' -- binding to a privileged port
by a non-root user always returns EACCES.
This commit is contained in:
parent
c62b41d9d5
commit
90d0144c05
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31941
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user