From: ben Date: Wed, 27 Apr 2005 11:10:54 +0000 (+0000) Subject: In SSH-2 mode, PuTTY wasn't sending KEXINIT until it had received one from the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/6a7552514943bba3d9c6d293569fea46e2dbcd7b?hp=865b3d6b4dad16ee4787d22d5a470656d442fd47 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@5685 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 0f6793ad..bd8db8da 100644 --- a/ssh.c +++ b/ssh.c @@ -2410,6 +2410,8 @@ static int do_ssh_init(Ssh ssh, unsigned char c) strcspn(verstring, "\015\012"), verstring); sk_write(ssh->s, verstring, strlen(verstring)); sfree(verstring); + if (ssh->version = 2) + do_ssh2_transport(ssh, NULL, -1, NULL); } logeventf(ssh, "Using SSH protocol version %d", ssh->version);