mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Zero length passwords no longer cause an assertion failure :-)
[originally from svn r993]
This commit is contained in:
parent
313b332a38
commit
9ee21069b5
2
ssh.c
2
ssh.c
@ -1911,7 +1911,7 @@ static int do_ssh1_login(unsigned char *in, int inlen, int ispkt)
|
|||||||
|
|
||||||
pwlen = strlen(password);
|
pwlen = strlen(password);
|
||||||
if (pwlen < 16) {
|
if (pwlen < 16) {
|
||||||
bottom = 1;
|
bottom = 0; /* zero length passwords are OK! :-) */
|
||||||
top = 15;
|
top = 15;
|
||||||
} else {
|
} else {
|
||||||
bottom = pwlen &~ 7;
|
bottom = pwlen &~ 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user