mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Yikes! Forgot to zero the password after SSH2 PW authentication.
[originally from svn r2512]
This commit is contained in:
parent
c601d72463
commit
10c1d43ac6
1
ssh.c
1
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
|
||||
|
Loading…
Reference in New Issue
Block a user