summaryrefslogtreecommitdiffstats
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-05-08 12:27:55 +1000
committerDamien Miller <djm@mindrot.org>2002-05-08 12:27:55 +1000
commitf762a4bea554a9ff4dc59b9456c7e1a2379310b3 (patch)
treeadfd0030673aa143c09ef6f29b624bc6dd9ebe42 /auth-pam.c
parenta33501bb5f8a7057dc56fd49a8a40c57468d86d4 (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 10a87fa4..490990de 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -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");