summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
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 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;