mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
In SSH-2 mode, PuTTY wasn't sending KEXINIT until it had received one from the
server, which led to stalemate if the server did the same. PuTTY now sends KEXINIT proactively as soon as it's worked out that it's talking SSH-2. [originally from svn r5685]
This commit is contained in:
parent
47e27618d8
commit
fcaee2626c
2
ssh.c
2
ssh.c
@ -2410,6 +2410,8 @@ static int do_ssh_init(Ssh ssh, unsigned char c)
|
|||||||
strcspn(verstring, "\015\012"), verstring);
|
strcspn(verstring, "\015\012"), verstring);
|
||||||
sk_write(ssh->s, verstring, strlen(verstring));
|
sk_write(ssh->s, verstring, strlen(verstring));
|
||||||
sfree(verstring);
|
sfree(verstring);
|
||||||
|
if (ssh->version = 2)
|
||||||
|
do_ssh2_transport(ssh, NULL, -1, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
logeventf(ssh, "Using SSH protocol version %d", ssh->version);
|
logeventf(ssh, "Using SSH protocol version %d", ssh->version);
|
||||||
|
Loading…
Reference in New Issue
Block a user