summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-10-03 22:43:37 +0000
committerderaadt <deraadt@openbsd.org>2003-10-03 22:43:37 +0000
commit469cdd8e348b8a8a50fd8bdf98f0c0901f5eeb5c (patch)
tree93d0e7a6d6a66bca97802d7bacc84978f9a4ea82 /usr.sbin/inetd
parentMake msp bind to 127.0.0.1 instead of localhost since "localhost" may (diff)
downloadwireguard-openbsd-469cdd8e348b8a8a50fd8bdf98f0c0901f5eeb5c.tar.xz
wireguard-openbsd-469cdd8e348b8a8a50fd8bdf98f0c0901f5eeb5c.zip
exit if no config file; jeffi@rcn.com
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index f679bc21fc5..07a1d8c2f18 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: inetd.c,v 1.111 2003/06/26 19:47:08 deraadt Exp $ */
-/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
+/* $OpenBSD: inetd.c,v 1.112 2003/10/03 22:43:37 deraadt Exp $ */
+
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
* All rights reserved.
@@ -37,7 +37,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.111 2003/06/26 19:47:08 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.112 2003/10/03 22:43:37 deraadt Exp $";
#endif /* not lint */
/*
@@ -671,7 +671,7 @@ doconfig(void)
if (!setconfig()) {
syslog(LOG_ERR, "%s: %m", CONFIG);
- return;
+ exit(1);
}
for (sep = servtab; sep; sep = sep->se_next)
sep->se_checked = 0;
@@ -1134,7 +1134,8 @@ struct servtab *dupconfig(struct servtab *);
int
setconfig(void)
{
- if (defhost) free(defhost);
+ if (defhost)
+ free(defhost);
defhost = newstr("*");
if (fconfig != NULL) {
fseek(fconfig, 0L, SEEK_SET);