From 5d07e6d46518c3b74e98c153795f753c79740ba2 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 18 Sep 2003 18:25:46 +1000 Subject: 20030918 - (djm) Bug #652: Fix empty password auth --- auth-passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth-passwd.c') diff --git a/auth-passwd.c b/auth-passwd.c index 95cc134de..971c7ba19 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -143,7 +143,7 @@ auth_password(Authctxt *authctxt, const char *password) char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; /* Check for users with no password. */ - if (strcmp(pw_password, "") == 0 && strcmp(pw->pw_passwd, "") == 0) + if (strcmp(pw_password, "") == 0 && strcmp(password, "") == 0) return ok; else { /* Encrypt the candidate password using the proper salt. */ -- cgit v1.2.3