projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f59a3
)
Clear kex_ctx in a new session so we can safely free an ssh session without
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 18 Jan 2003 21:56:33 +0000
(21:56 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 18 Jan 2003 21:56:33 +0000
(21:56 +0000)
one.
git-svn-id: svn://svn.tartarus.org/sgt/putty@2649
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
1d9b1ed
..
7e83183
100644
(file)
--- 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;