summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index c2d298f1b..84aa2c5e8 100644
--- a/auth.c
+++ b/auth.c
@@ -114,6 +114,7 @@ allowed_user(struct passwd * pw)
#endif /* USE_SHADOW */
/* grab passwd field for locked account check */
+ passwd = pw->pw_passwd;
#ifdef USE_SHADOW
if (spw != NULL)
#ifdef USE_LIBIAF
@@ -121,8 +122,6 @@ allowed_user(struct passwd * pw)
#else
passwd = spw->sp_pwdp;
#endif /* USE_LIBIAF */
-#else
- passwd = pw->pw_passwd;
#endif
/* check for locked account */