Initialize the slc mapping table before its used.
Based on bugraport from Russell Sanford <rrs@clyde.dcccd.edu> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16331 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -368,6 +368,7 @@ main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
mini_inetd (port);
|
mini_inetd (port);
|
||||||
|
setlinebuf(stdout);
|
||||||
} else if (argc > 0) {
|
} else if (argc > 0) {
|
||||||
usage();
|
usage();
|
||||||
/* NOT REACHED */
|
/* NOT REACHED */
|
||||||
@@ -746,6 +747,15 @@ Please contact your net administrator");
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
init_env();
|
init_env();
|
||||||
|
|
||||||
|
/* begin server processing */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize the slc mapping table.
|
||||||
|
*/
|
||||||
|
|
||||||
|
get_slc_defaults();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get terminal type.
|
* get terminal type.
|
||||||
*/
|
*/
|
||||||
@@ -762,7 +772,6 @@ Please contact your net administrator");
|
|||||||
}
|
}
|
||||||
#endif /* _SC_CRAY_SECURE_SYS */
|
#endif /* _SC_CRAY_SECURE_SYS */
|
||||||
|
|
||||||
/* begin server processing */
|
|
||||||
my_telnet(net, ourpty, remote_host_name, remote_utmp_name,
|
my_telnet(net, ourpty, remote_host_name, remote_utmp_name,
|
||||||
level, user_name);
|
level, user_name);
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
@@ -809,11 +818,6 @@ my_telnet(int f, int p, const char *host, const char *utmp_host,
|
|||||||
int startslave_called = 0;
|
int startslave_called = 0;
|
||||||
time_t timeout;
|
time_t timeout;
|
||||||
|
|
||||||
/*
|
|
||||||
* Initialize the slc mapping table.
|
|
||||||
*/
|
|
||||||
get_slc_defaults();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do some tests where it is desireable to wait for a response.
|
* Do some tests where it is desireable to wait for a response.
|
||||||
* Rather than doing them slowly, one at a time, do them all
|
* Rather than doing them slowly, one at a time, do them all
|
||||||
|
Reference in New Issue
Block a user