summaryrefslogtreecommitdiff
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)
114#endif /* USE_SHADOW */ 114#endif /* USE_SHADOW */
115 115
116 /* grab passwd field for locked account check */ 116 /* grab passwd field for locked account check */
117 passwd = pw->pw_passwd;
117#ifdef USE_SHADOW 118#ifdef USE_SHADOW
118 if (spw != NULL) 119 if (spw != NULL)
119#ifdef USE_LIBIAF 120#ifdef USE_LIBIAF
@@ -121,8 +122,6 @@ allowed_user(struct passwd * pw)
121#else 122#else
122 passwd = spw->sp_pwdp; 123 passwd = spw->sp_pwdp;
123#endif /* USE_LIBIAF */ 124#endif /* USE_LIBIAF */
124#else
125 passwd = pw->pw_passwd;
126#endif 125#endif
127 126
128 /* check for locked account */ 127 /* check for locked account */