]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Don't resend username to PAM; it already has it.
authorDamien Miller <djm@mindrot.org>
Tue, 11 Aug 2015 03:33:24 +0000 (13:33 +1000)
committerDamien Miller <djm@mindrot.org>
Tue, 11 Aug 2015 03:36:00 +0000 (13:36 +1000)
Pointed out by Moritz Jodeit; ok dtucker@

monitor.c
monitor_wrap.c

index b4109657efdf546b119f9a82693e66f4e557e7d5..f1b873dc4d7db3a59272dd64eccd83550731866c 100644 (file)
--- 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);
index e6217b3d42f6130de6849096496504d84281cdd9..eac421ba145bf69061e9344c1ad4dfd281c1ae20 100644 (file)
@@ -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);