From ea8a943e6da28baa64cfb2e0ba04c06971682e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 1 Dec 2005 15:25:45 +0000 Subject: [PATCH] Initialize the slc mapping table before its used. Based on bugraport from Russell Sanford git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16331 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnetd/telnetd.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/appl/telnet/telnetd/telnetd.c b/appl/telnet/telnetd/telnetd.c index c707a5b53..bc7d3f2bb 100644 --- a/appl/telnet/telnetd/telnetd.c +++ b/appl/telnet/telnetd/telnetd.c @@ -368,6 +368,7 @@ main(int argc, char **argv) #endif } mini_inetd (port); + setlinebuf(stdout); } else if (argc > 0) { usage(); /* NOT REACHED */ @@ -746,6 +747,15 @@ Please contact your net administrator"); #endif init_env(); + + /* begin server processing */ + + /* + * Initialize the slc mapping table. + */ + + get_slc_defaults(); + /* * get terminal type. */ @@ -762,7 +772,6 @@ Please contact your net administrator"); } #endif /* _SC_CRAY_SECURE_SYS */ - /* begin server processing */ my_telnet(net, ourpty, remote_host_name, remote_utmp_name, level, user_name); /*NOTREACHED*/ @@ -809,11 +818,6 @@ my_telnet(int f, int p, const char *host, const char *utmp_host, int startslave_called = 0; time_t timeout; - /* - * Initialize the slc mapping table. - */ - get_slc_defaults(); - /* * Do some tests where it is desireable to wait for a response. * Rather than doing them slowly, one at a time, do them all