summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-08-11 13:33:24 +1000
committerDamien Miller <djm@mindrot.org>2015-08-11 13:36:00 +1000
commitd4697fe9a28dab7255c60433e4dd23cf7fce8a8b (patch)
tree200eef558da3719f9be93d763496228bd8a24eee
parent88763a6c893bf3dfe951ba9271bf09715e8d91ca (diff)
Don't resend username to PAM; it already has it.
Pointed out by Moritz Jodeit; ok dtucker@
-rw-r--r--monitor.c2
-rw-r--r--monitor_wrap.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/monitor.c b/monitor.c
index b4109657..f1b873dc 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1084,9 +1084,7 @@ extern KbdintDevice sshpam_device;
int
mm_answer_pam_init_ctx(int sock, Buffer *m)
{
-
debug3("%s", __func__);
- authctxt->user = buffer_get_string(m, NULL);
sshpam_ctxt = (sshpam_device.init_ctx)(authctxt);
sshpam_authok = NULL;
buffer_clear(m);
diff --git a/monitor_wrap.c b/monitor_wrap.c
index e6217b3d..eac421ba 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -614,7 +614,6 @@ mm_sshpam_init_ctx(Authctxt *authctxt)
debug3("%s", __func__);
buffer_init(&m);
- buffer_put_cstring(&m, authctxt->user);
mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_INIT_CTX, &m);
debug3("%s: waiting for MONITOR_ANS_PAM_INIT_CTX", __func__);
mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_PAM_INIT_CTX, &m);