From 69406cabf4da058ed2e042da0bc865a15a25a03d Mon Sep 17 00:00:00 2001 From: djm Date: Wed, 8 May 2002 02:18:26 +0000 Subject: [PATCH] - (djm) Unbreak auth-passwd.c for PAM and SIA --- ChangeLog | 3 +++ auth-passwd.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4eb5b2b3..45595eed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +20020506 + - (djm) Unbreak auth-passwd.c for PAM and SIA + 20020506 - (bal) Fixed auth-passwd.c to resolve PermitEmptyPassword issue diff --git a/auth-passwd.c b/auth-passwd.c index 896f1c26..348ab9dd 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -89,6 +89,7 @@ extern ServerOptions options; int auth_password(Authctxt *authctxt, const char *password) { + struct passwd * pw = authctxt->pw; #if defined(USE_PAM) if (*pw->pw_passwd == '\0' && options.permit_empty_passwd == 0) return 0; @@ -98,7 +99,6 @@ auth_password(Authctxt *authctxt, const char *password) return 0; return auth_sia_password(authctxt, password); #else - struct passwd * pw = authctxt->pw; char *encrypted_password; char *pw_password; char *salt; -- 2.45.2