diff options
author | Damien Miller <djm@mindrot.org> | 2003-09-18 10:25:46 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-09-18 10:25:46 +0200 |
commit | 5d07e6d46518c3b74e98c153795f753c79740ba2 (patch) | |
tree | c3b253afe3d1db74de750e75f8161fb182cacbbb /auth-passwd.c | |
parent | [openbsd-compat/inet_ntoa.c] 20030917 "Sync with V_3_7 branch" undid (diff) | |
download | openssh-5d07e6d46518c3b74e98c153795f753c79740ba2.tar.xz openssh-5d07e6d46518c3b74e98c153795f753c79740ba2.zip |
20030918
- (djm) Bug #652: Fix empty password auth
Diffstat (limited to 'auth-passwd.c')
-rw-r--r-- | auth-passwd.c | 2 |
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) 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. */ |