diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-15 17:53:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-15 17:53:10 +0000 |
commit | c29e7d666b02a2c00292c79aeeecf231743d3c94 (patch) | |
tree | dbf510b7d318c154b06ad2ec5abf146fecafb8c0 | |
parent | e2303d3e54bf3b5714663bbee1877c528241dced (diff) |
check all flags before looping
-rw-r--r-- | usr.sbin/inetd/inetd.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 334405fc838..59d94e53058 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.79 2001/01/30 08:30:57 deraadt Exp $ */ +/* $OpenBSD: inetd.c,v 1.80 2001/03/15 17:53:09 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.79 2001/01/30 08:30:57 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.80 2001/03/15 17:53:09 deraadt Exp $"; #endif /* not lint */ /* @@ -463,19 +463,19 @@ main(argc, argv, envp) } bcopy(allsockp, readablep, allsockn); - if (wantretry) { - doretry(); - wantretry = 0; - continue; - } - if (wantconfig) { - doconfig(); - wantconfig = 0; - continue; - } - if (wantreap) { - doreap(); - wantreap = 0; + if (wantretry || wantconfig || wantreap) { + if (wantretry) { + doretry(); + wantretry = 0; + } + if (wantconfig) { + doconfig(); + wantconfig = 0; + } + if (wantreap) { + doreap(); + wantreap = 0; + } continue; } |