summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1997-12-04 21:35:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1997-12-04 21:35:30 +0000
commit4bf20c043bcbd251cb83649321cf9561c72c21bf (patch)
tree961879af1d1829f38f10cb0e137d74f91523c70c
parente225c0ea01fc8d9eac45ad3b0773d175c310dbc6 (diff)
Fixed a sysadmin-dos.
-rw-r--r--usr.sbin/inetd/inetd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 38ba7629718..d59924d73be 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.42 1997/11/14 03:46:00 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.43 1997/12/04 21:35:29 art 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.42 1997/11/14 03:46:00 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.43 1997/12/04 21:35:29 art Exp $";
#endif /* not lint */
/*
@@ -744,7 +744,7 @@ config(sig)
syslog(LOG_ERR,
"%s: unknown rpc service",
sep->se_service);
- continue;
+ goto serv_unknown;
}
sep->se_rpcprog = rp->r_number;
}
@@ -762,7 +762,7 @@ config(sig)
syslog(LOG_ERR,
"%s/%s: unknown service",
sep->se_service, sep->se_proto);
- continue;
+ goto serv_unknown;
}
port = sp->s_port;
}
@@ -779,6 +779,7 @@ config(sig)
setup(sep);
}
}
+ serv_unknown:
if (cp->se_next != NULL) {
struct servtab *tmp = cp;