summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--auth-passwd.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bc5b49eea..55c0ef223 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
120030918
2 - (djm) Bug #652: Fix empty password auth
3
120030917 420030917
2 - (djm) Sync with V_3_7 branch 5 - (djm) Sync with V_3_7 branch
3 - (djm) OpenBSD Sync 6 - (djm) OpenBSD Sync
@@ -1115,4 +1118,4 @@
1115 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1118 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1116 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1119 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1117 1120
1118$Id: ChangeLog,v 1.3000 2003/09/17 20:20:33 tim Exp $ 1121$Id: ChangeLog,v 1.3001 2003/09/18 08:25:46 djm Exp $
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. */