From 9ee21069b5803003c91a692838d6962ae121e233 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 12 Mar 2001 15:12:33 +0000 Subject: [PATCH] Zero length passwords no longer cause an assertion failure :-) [originally from svn r993] --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index cc20f3bd..7b4bff46 100644 --- a/ssh.c +++ b/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;