Skip to content

Commit d4697fe

Browse files
committed
Don't resend username to PAM; it already has it.
Pointed out by Moritz Jodeit; ok dtucker@
1 parent 88763a6 commit d4697fe

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Diff for: monitor.c

-2
Original file line numberDiff line numberDiff line change
@@ -1084,9 +1084,7 @@ extern KbdintDevice sshpam_device;
10841084
int
10851085
mm_answer_pam_init_ctx(int sock, Buffer *m)
10861086
{
1087-
10881087
debug3("%s", __func__);
1089-
authctxt->user = buffer_get_string(m, NULL);
10901088
sshpam_ctxt = (sshpam_device.init_ctx)(authctxt);
10911089
sshpam_authok = NULL;
10921090
buffer_clear(m);

Diff for: monitor_wrap.c

-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ mm_sshpam_init_ctx(Authctxt *authctxt)
614614

615615
debug3("%s", __func__);
616616
buffer_init(&m);
617-
buffer_put_cstring(&m, authctxt->user);
618617
mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_INIT_CTX, &m);
619618
debug3("%s: waiting for MONITOR_ANS_PAM_INIT_CTX", __func__);
620619
mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_PAM_INIT_CTX, &m);

0 commit comments

Comments
 (0)