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:
5ceef18
)
Yikes! Forgot to zero the password after SSH2 PW authentication.
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 9 Jan 2003 17:33:49 +0000
(17:33 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 9 Jan 2003 17:33:49 +0000
(17:33 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2512
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
24617b1
..
eac3112
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-4942,6
+4942,7
@@
static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
ssh2_pkt_addstring(ssh, "password");
ssh2_pkt_addbool(ssh, FALSE);
ssh2_pkt_addstring(ssh, s->password);
+ memset(s->password, 0, sizeof(s->password));
ssh2_pkt_defer(ssh);
/*
* We'll include a string that's an exact multiple of the