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:
6667762
)
Check ssh->v2_session_id_len _after_ assigning to it.
author
jacob
<jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 2 Sep 2005 10:51:09 +0000
(10:51 +0000)
committer
jacob
<jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 2 Sep 2005 10:51:09 +0000
(10:51 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@6260
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
22cea9f
..
763e1fd
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-5602,8
+5602,8
@@
static int do_ssh2_transport(Ssh ssh, void *vin, int inlen,
assert(sizeof(s->exchange_hash) <= sizeof(ssh->v2_session_id));
memcpy(ssh->v2_session_id, s->exchange_hash,
sizeof(s->exchange_hash));
- assert(ssh->v2_session_id_len <= sizeof(ssh->v2_session_id));
ssh->v2_session_id_len = ssh->kex->hash->hlen;
+ assert(ssh->v2_session_id_len <= sizeof(ssh->v2_session_id));
s->got_session_id = TRUE;
}