(my_telnet): if telnet_spin returns failure, complain that the server

disconnected and exit


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12922 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-09-25 15:47:02 +00:00
parent b2b4d18c3e
commit 1efd89da9d

View File

@@ -2109,7 +2109,11 @@ my_telnet(char *user)
printf("\nUser interrupt.\n");
Exit(1);
}
telnet_spin();
if (telnet_spin()) {
printf("\nServer disconnected.\n");
Exit(1);
}
}
if (printed_encrypt) {
printf("Encryption negotiated.\n");