summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorstark <stark@FreeBSD.org>1999-08-08 07:23:12 +0000
committerstark <stark@FreeBSD.org>1999-08-08 07:23:12 +0000
commitc8630dca70d0a9118e5da651e8d41548d7511e1c (patch)
treec93c62e5436b8d309acb184cf598b8b876a25e25 /libexec
parentbc22ab3c1b943a25f7611ee63fabca113fc1ca8f (diff)
downloadFreeBSD-src-c8630dca70d0a9118e5da651e8d41548d7511e1c.zip
FreeBSD-src-c8630dca70d0a9118e5da651e8d41548d7511e1c.tar.gz
Correction to previous commit.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/xtend/xtend.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libexec/xtend/xtend.c b/libexec/xtend/xtend.c
index f6aaf65..01fcb68 100644
--- a/libexec/xtend/xtend.c
+++ b/libexec/xtend/xtend.c
@@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: xtend.c,v 1.6 1997/12/04 07:25:19 charnier Exp $";
+ "$Id: xtend.c,v 1.7 1999/08/08 07:05:46 stark Exp $";
#endif /* not lint */
/*
@@ -285,14 +285,10 @@ char *argv[];
processpacket(rpkt);
}
} else if(FD_ISSET(user, &fs) && User != NULL) {
- if(User != NULL) {
- if(user_command()) {
- fprintf(Log, "%s: Closing user connection\n", thedate());
- fclose(User);
- User = NULL;
- }
- } else {
- /* "Can't" happen */
+ if(user_command()) {
+ fprintf(Log, "%s: Closing user connection\n", thedate());
+ fclose(User);
+ User = NULL;
}
} else if(FD_ISSET(sock, &fs)) { /* Accept a connection */
if (User == NULL) {
OpenPOWER on IntegriCloud