summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 234e8f435..34326c242 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -485,6 +485,9 @@ KbdintDevice mm_sshpam_device = {
485void 485void
486start_pam(const char *user) 486start_pam(const char *user)
487{ 487{
488 if (!options.use_pam)
489 fatal("PAM: initialisation requested when UsePAM=no");
490
488 if (sshpam_init(user) == -1) 491 if (sshpam_init(user) == -1)
489 fatal("PAM: initialisation failed"); 492 fatal("PAM: initialisation failed");
490} 493}