1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-28 07:14:48 -05:00

Attempt to fix the remaining key re-exchange bug

[originally from svn r934]
This commit is contained in:
Simon Tatham 2001-02-20 13:55:59 +00:00
parent 53f03d93d5
commit 8a4206e636

4
ssh.c
View File

@ -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;