summaryrefslogtreecommitdiff
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-29 01:02:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-29 01:02:25 +0000
commitd0d6f2b97052ab8a3b2132c7fb2e0abb17763042 (patch)
tree19d117b8327f959efab4bbfae73893f6ccd39dea /usr.sbin/inetd
parent35b8d49e8884f0f22e0fe2061f0c420ac833c0a5 (diff)
bindresvport() called incorrectly; we need a proto somewhere guys
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 673c7612254..d854d591cd0 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.5 1996/06/28 17:50:09 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.6 1996/06/29 01:02:24 deraadt Exp $ */
/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/
-static char rcsid[] = "$OpenBSD: inetd.c,v 1.5 1996/06/28 17:50:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.6 1996/06/29 01:02:24 deraadt Exp $";
#endif /* not lint */
/*
@@ -750,8 +750,7 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)&on, sizeof (on))
*/
if (sep->se_user && (pwd = getpwnam(sep->se_user)) &&
pwd->pw_uid == 0)
- r = bindresvport(sep->se_fd, &sep->se_ctrladdr,
- sep->se_ctrladdr_size);
+ r = bindresvport(sep->se_fd, &sep->se_ctrladdr);
else
r = bind(sep->se_fd, &sep->se_ctrladdr,
sep->se_ctrladdr_size);