aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-01-22 21:09:48 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-01-22 21:09:48 +0000
commit8eb214edbd305a200a4665080a4a248e9ca8c5bb (patch)
treef5afe36487fbb3b33cf57de71afd8d517ca50d39
parentd8fdf0c57d0062e60f3ae88cb69faadc5deed30f (diff)
downloadbusybox-8eb214edbd305a200a4665080a4a248e9ca8c5bb.tar.gz
Patch from Basitan Blank to fix nasty bug
-rw-r--r--networking/telnetd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index d17682eb4..8634a4233 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,4 +1,4 @@
-/* $Id: telnetd.c,v 1.3 2003/01/21 20:55:56 bug1 Exp $
+/* $Id: telnetd.c,v 1.4 2003/01/22 21:09:48 bug1 Exp $
*
* Simple telnet server
* Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
@@ -391,9 +391,8 @@ telnetd_main(int argc, char **argv)
argv_init[0] = loginpath;
#ifdef CONFIG_FEATURE_TELNETD_INETD
- sessions = make_new_session();
-
maxfd = 1;
+ sessions = make_new_session();
#else /* CONFIG_EATURE_TELNETD_INETD */
sessions = 0;