diff options
author | Damien Miller <djm@mindrot.org> | 2002-05-08 12:27:55 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-05-08 12:27:55 +1000 |
commit | f762a4bea554a9ff4dc59b9456c7e1a2379310b3 (patch) | |
tree | adfd0030673aa143c09ef6f29b624bc6dd9ebe42 /auth-pam.c | |
parent | a33501bb5f8a7057dc56fd49a8a40c57468d86d4 (diff) |
- (djm) Don't reinitialise PAM credentials before we have started PAM.
Report from Pekka Savola <pekkas@netcore.fi>
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -36,7 +36,7 @@ extern char *__progname; -RCSID("$Id: auth-pam.c,v 1.45 2002/04/26 01:27:24 djm Exp $"); +RCSID("$Id: auth-pam.c,v 1.46 2002/05/08 02:27:56 djm Exp $"); #define NEW_AUTHTOK_MSG \ "Warning: Your password has expired, please change it now" @@ -299,6 +299,9 @@ void do_pam_setcred(int init) { int pam_retval; + if (__pamh == NULL) + return; + do_pam_set_conv(&conv); debug("PAM establishing creds"); |