From: simon Date: Tue, 20 Feb 2001 13:55:59 +0000 (+0000) Subject: Attempt to fix the remaining key re-exchange bug X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/e96adf7299437616bbf3cad5211a03739067628d Attempt to fix the remaining key re-exchange bug git-svn-id: svn://svn.tartarus.org/sgt/putty@934 cda61777-01e9-0310-a592-d414129be87e --- 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;