mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 16:24:39 +02:00
Don't resend username to PAM; it already has it.
Pointed out by Moritz Jodeit; ok dtucker@
This commit is contained in:
parent
88763a6c89
commit
d4697fe9a2
@ -1084,9 +1084,7 @@ extern KbdintDevice sshpam_device;
|
|||||||
int
|
int
|
||||||
mm_answer_pam_init_ctx(int sock, Buffer *m)
|
mm_answer_pam_init_ctx(int sock, Buffer *m)
|
||||||
{
|
{
|
||||||
|
|
||||||
debug3("%s", __func__);
|
debug3("%s", __func__);
|
||||||
authctxt->user = buffer_get_string(m, NULL);
|
|
||||||
sshpam_ctxt = (sshpam_device.init_ctx)(authctxt);
|
sshpam_ctxt = (sshpam_device.init_ctx)(authctxt);
|
||||||
sshpam_authok = NULL;
|
sshpam_authok = NULL;
|
||||||
buffer_clear(m);
|
buffer_clear(m);
|
||||||
|
@ -614,7 +614,6 @@ mm_sshpam_init_ctx(Authctxt *authctxt)
|
|||||||
|
|
||||||
debug3("%s", __func__);
|
debug3("%s", __func__);
|
||||||
buffer_init(&m);
|
buffer_init(&m);
|
||||||
buffer_put_cstring(&m, authctxt->user);
|
|
||||||
mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_INIT_CTX, &m);
|
mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_INIT_CTX, &m);
|
||||||
debug3("%s: waiting for MONITOR_ANS_PAM_INIT_CTX", __func__);
|
debug3("%s: waiting for MONITOR_ANS_PAM_INIT_CTX", __func__);
|
||||||
mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_PAM_INIT_CTX, &m);
|
mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_PAM_INIT_CTX, &m);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user