Zero length passwords no longer cause an assertion failure :-)

[originally from svn r993]
This commit is contained in:
Simon Tatham 2001-03-12 15:12:33 +00:00
Родитель 313b332a38
Коммит 9ee21069b5
1 изменённых файлов: 1 добавлений и 1 удалений

2
ssh.c
Просмотреть файл

@ -1911,7 +1911,7 @@ static int do_ssh1_login(unsigned char *in, int inlen, int ispkt)
pwlen = strlen(password);
if (pwlen < 16) {
bottom = 1;
bottom = 0; /* zero length passwords are OK! :-) */
top = 15;
} else {
bottom = pwlen &~ 7;