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

Merge branch 'pre-0.64'

This commit is contained in:
Simon Tatham
2015-02-28 07:57:58 +00:00
9 changed files with 54 additions and 13 deletions

7
ssh.c
View File

@ -6648,6 +6648,13 @@ static void do_ssh2_transport(Ssh ssh, void *vin, int inlen,
}
ssh_pkt_getstring(pktin, &s->sigdata, &s->siglen);
{
const char *err = dh_validate_f(ssh->kex_ctx, s->f);
if (err) {
bombout(("key exchange reply failed validation: %s", err));
crStopV;
}
}
s->K = dh_find_K(ssh->kex_ctx, s->f);
/* We assume everything from now on will be quick, and it might