1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fix segfault when you press a key before the SSH protocol decides whether

it's doing SSH1 or SSH2. Only visible on slow servers :-)

[originally from svn r803]
This commit is contained in:
Simon Tatham 2000-11-21 10:53:10 +00:00
parent 0ff0fad344
commit d094883d3c

2
ssh.c
View File

@ -2680,7 +2680,7 @@ static char *ssh_init (char *host, int port, char **realhost) {
* Called to send data down the Telnet connection.
*/
static void ssh_send (char *buf, int len) {
if (s == NULL)
if (s == NULL || ssh_protocol == NULL)
return;
ssh_protocol(buf, len, 0);