From: ben Date: Sat, 18 Jan 2003 21:56:33 +0000 (+0000) Subject: Clear kex_ctx in a new session so we can safely free an ssh session without X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/389aa499593df4c352df94e7e94f718a6ae4c828 Clear kex_ctx in a new session so we can safely free an ssh session without one. git-svn-id: svn://svn.tartarus.org/sgt/putty@2649 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 1d9b1ed1..7e831839 100644 --- a/ssh.c +++ b/ssh.c @@ -824,7 +824,7 @@ static int ssh1_rdpkt(Ssh ssh, unsigned char **data, int *datalen) st->realcrc = crc32(ssh->pktin.data, st->biglen - 4); st->gotcrc = GET_32BIT(ssh->pktin.data + st->biglen - 4); if (st->gotcrc != st->realcrc) { - bombout((ssh,"Incorrect CRC received on packet")); + bombout((ssh,"Incorrect CRC received on packet: wanted 0x%08x, got 0x%08x", st->realcrc, st->gotcrc)); crReturn(0); } @@ -5903,6 +5903,7 @@ static char *ssh_init(void *frontend_handle, void **backend_handle, ssh->sccomp = NULL; ssh->sc_comp_ctx = NULL; ssh->kex = NULL; + ssh->kex_ctx = NULL; ssh->hostkey = NULL; ssh->exitcode = -1; ssh->state = SSH_STATE_PREPACKET;