only try to negotiate encryption if we're talking to a real telnet

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10967 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-05-03 10:19:43 +00:00
parent a1e5142eea
commit 3e02d56d85

View File

@@ -2063,7 +2063,7 @@ my_telnet(char *user)
* is necessary so that authentication fails, we don't spin
* forever.
*/
if (wantencryption) {
if (telnetport && wantencryption) {
extern int auth_has_failed;
time_t timeout = time(0) + 60;