(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:
@@ -2109,7 +2109,11 @@ my_telnet(char *user)
|
|||||||
printf("\nUser interrupt.\n");
|
printf("\nUser interrupt.\n");
|
||||||
Exit(1);
|
Exit(1);
|
||||||
}
|
}
|
||||||
telnet_spin();
|
if (telnet_spin()) {
|
||||||
|
printf("\nServer disconnected.\n");
|
||||||
|
Exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (printed_encrypt) {
|
if (printed_encrypt) {
|
||||||
printf("Encryption negotiated.\n");
|
printf("Encryption negotiated.\n");
|
||||||
|
Reference in New Issue
Block a user