Corrected mistake that was causing daemon to loop without serving

user requests.  Note that nothing can be said about the value of 'user'
unless User != NULL.
This commit is contained in:
Gene Stark 1999-08-08 07:05:46 +00:00
parent 32c0c324d5
commit de44c0a11d

View file

@ -31,7 +31,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: xtend.c,v 1.6 1997/12/04 07:25:19 charnier Exp $";
#endif /* not lint */
/*
@ -284,7 +284,7 @@ char *argv[];
logpacket(rpkt);
processpacket(rpkt);
}
} else if(FD_ISSET(user, &fs)) {
} else if(FD_ISSET(user, &fs) && User != NULL) {
if(User != NULL) {
if(user_command()) {
fprintf(Log, "%s: Closing user connection\n", thedate());