summaryrefslogtreecommitdiffstats
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-01-20 10:22:18 +1100
committerDamien Miller <djm@mindrot.org>2019-01-20 10:22:18 +1100
commit3f0786bbe73609ac96e5a0d91425ee21129f8e04 (patch)
treebe9ab562ad56a3948fee1f27fc9a13e4700b3661 /auth2.c
parent08f66d9f17e12c1140d1f1cf5c4dce67e915d3cc (diff)
remove PAM dependencies on old packet API
Requires some caching of values, because the PAM code isn't always called with packet context.
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth2.c b/auth2.c
index 2e996fa5..a80b3f87 100644
--- a/auth2.c
+++ b/auth2.c
@@ -299,7 +299,7 @@ input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
}
#ifdef USE_PAM
if (options.use_pam)
- PRIVSEP(start_pam(authctxt));
+ PRIVSEP(start_pam(ssh));
#endif
ssh_packet_set_log_preamble(ssh, "%suser %s",
authctxt->valid ? "authenticating " : "invalid ", user);