summaryrefslogtreecommitdiff
path: root/auth2-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-pam.c')
-rw-r--r--auth2-pam.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/auth2-pam.c b/auth2-pam.c
index 498cc7461..d1d840972 100644
--- a/auth2-pam.c
+++ b/auth2-pam.c
@@ -1,5 +1,5 @@
1#include "includes.h" 1#include "includes.h"
2RCSID("$Id: auth2-pam.c,v 1.3 2001/01/19 04:26:52 mouring Exp $"); 2RCSID("$Id: auth2-pam.c,v 1.4 2001/01/19 04:46:38 djm Exp $");
3 3
4#ifdef USE_PAM 4#ifdef USE_PAM
5#include "ssh.h" 5#include "ssh.h"
@@ -36,10 +36,8 @@ auth2_pam(Authctxt *authctxt)
36 if (authctxt->user == NULL) 36 if (authctxt->user == NULL)
37 fatal("auth2_pam: internal error: no user"); 37 fatal("auth2_pam: internal error: no user");
38 38
39 if (authctxt->valid) { 39 conv2.appdata_ptr = authctxt;
40 conv2.appdata_ptr = authctxt; 40 pam_set_conv(&conv2);
41 pam_set_conv(&conv2);
42 }
43 41
44 dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, 42 dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE,
45 &input_userauth_info_response_pam); 43 &input_userauth_info_response_pam);