From 8a4206e636bcb5c4020c7c8707ec5d06fe34d874 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 20 Feb 2001 13:55:59 +0000 Subject: [PATCH] Attempt to fix the remaining key re-exchange bug [originally from svn r934] --- 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;