From e96adf7299437616bbf3cad5211a03739067628d Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 20 Feb 2001 13:55:59 +0000 Subject: [PATCH] Attempt to fix the remaining key re-exchange bug git-svn-id: svn://svn.tartarus.org/sgt/putty@934 cda61777-01e9-0310-a592-d414129be87e --- ssh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh.c b/ssh.c index 5a7dcf24..7daae9f1 100644 --- a/ssh.c +++ b/ssh.c @@ -2454,9 +2454,9 @@ static int do_ssh2_transport(unsigned char *in, int inlen, int ispkt) * transport. If we ever see a KEXINIT, we must go back to the * start. */ - do { + while (!(ispkt && pktin.type == SSH2_MSG_KEXINIT)) { crReturn(1); - } while (!(ispkt && pktin.type == SSH2_MSG_KEXINIT)); + } logevent("Server initiated key re-exchange"); goto begin_key_exchange; -- 2.11.0