summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/telnet/telnet/commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index 906a875..a8a3a44 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -2262,6 +2262,7 @@ tn(int argc, char *argv[])
hostp);
goto fail;
}
+ hostname = hostp;
memset(&su, 0, sizeof su);
su.sun_family = AF_UNIX;
strncpy(su.sun_path, hostp, sizeof su.sun_path);
@@ -2469,6 +2470,7 @@ tn(int argc, char *argv[])
freeaddrinfo(src_res0);
cmdrc(hostp, hostname);
af_unix:
+ connected = 1;
if (autologin && user == NULL) {
struct passwd *pw;
OpenPOWER on IntegriCloud