summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authordjm <djm>2008-07-04 22:59:43 +0000
committerdjm <djm>2008-07-04 22:59:43 +0000
commitf5dcebba06546e161907191dea045b1904ee90cb (patch)
tree36327ad347e301dc473fb0b6ae7b328a0cd62530 /auth.c
parent3d2174695a7e606f709dca9dd87a68757c8c437c (diff)
downloadopenssh-f5dcebba06546e161907191dea045b1904ee90cb.tar.gz
- (djm) [auth.c] Fixed test for locked account on HP/UX with shadowed
passwords disabled. bz#1083 report & patch from senthilkumar_sen AT hotpop.com, w/ dtucker@
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 c2d298f1..84aa2c5e 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 */