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 b0e744b60..93e1f79c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
120020506 120020506
2 - (djm) Unbreak auth-passwd.c for PAM and SIA
3
420020506
2 - (bal) Fixed auth-passwd.c to resolve PermitEmptyPassword issue 5 - (bal) Fixed auth-passwd.c to resolve PermitEmptyPassword issue
3 6
420020501 720020501
@@ -528,4 +531,4 @@
528 - (stevesk) entropy.c: typo in debug message 531 - (stevesk) entropy.c: typo in debug message
529 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 532 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
530 533
531$Id: ChangeLog,v 1.2092 2002/05/06 23:06:08 mouring Exp $ 534$Id: ChangeLog,v 1.2093 2002/05/08 02:18:26 djm Exp $
diff --git a/auth-passwd.c b/auth-passwd.c
index 896f1c263..348ab9ddb 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -89,6 +89,7 @@ extern ServerOptions options;
89int 89int
90auth_password(Authctxt *authctxt, const char *password) 90auth_password(Authctxt *authctxt, const char *password)
91{ 91{
92 struct passwd * pw = authctxt->pw;
92#if defined(USE_PAM) 93#if defined(USE_PAM)
93 if (*pw->pw_passwd == '\0' && options.permit_empty_passwd == 0) 94 if (*pw->pw_passwd == '\0' && options.permit_empty_passwd == 0)
94 return 0; 95 return 0;
@@ -98,7 +99,6 @@ auth_password(Authctxt *authctxt, const char *password)
98 return 0; 99 return 0;
99 return auth_sia_password(authctxt, password); 100 return auth_sia_password(authctxt, password);
100#else 101#else
101 struct passwd * pw = authctxt->pw;
102 char *encrypted_password; 102 char *encrypted_password;
103 char *pw_password; 103 char *pw_password;
104 char *salt; 104 char *salt;