summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-09-18 18:26:48 +1000
committerDamien Miller <djm@mindrot.org>2003-09-18 18:26:48 +1000
commitaa9a76fe4c128cb119f21db65cbf9e82cd48c876 (patch)
treeefb80effafc970f607aa2fe2a44fbe3ab01a8fa5 /auth-passwd.c
parentade1cee573c0897cd08987dc14e23a555898cd12 (diff)
- (djm) Bug #652: Fix empty password auth
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c2
1 files changed, 1 insertions, 1 deletions
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)
143 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; 143 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd;
144 144
145 /* Check for users with no password. */ 145 /* Check for users with no password. */
146 if (strcmp(pw_password, "") == 0 && strcmp(pw->pw_passwd, "") == 0) 146 if (strcmp(pw_password, "") == 0 && strcmp(password, "") == 0)
147 return ok; 147 return ok;
148 else { 148 else {
149 /* Encrypt the candidate password using the proper salt. */ 149 /* Encrypt the candidate password using the proper salt. */