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
diff --git a/auth-pam.c b/auth-pam.c index 10a87fa46..490990dec 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | extern char *__progname; | 37 | extern char *__progname; |
38 | 38 | ||
39 | RCSID("$Id: auth-pam.c,v 1.45 2002/04/26 01:27:24 djm Exp $"); | 39 | RCSID("$Id: auth-pam.c,v 1.46 2002/05/08 02:27:56 djm Exp $"); |
40 | 40 | ||
41 | #define NEW_AUTHTOK_MSG \ | 41 | #define NEW_AUTHTOK_MSG \ |
42 | "Warning: Your password has expired, please change it now" | 42 | "Warning: Your password has expired, please change it now" |
@@ -299,6 +299,9 @@ void do_pam_setcred(int init) | |||
299 | { | 299 | { |
300 | int pam_retval; | 300 | int pam_retval; |
301 | 301 | ||
302 | if (__pamh == NULL) | ||
303 | return; | ||
304 | |||
302 | do_pam_set_conv(&conv); | 305 | do_pam_set_conv(&conv); |
303 | 306 | ||
304 | debug("PAM establishing creds"); | 307 | debug("PAM establishing creds"); |