aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-09-24 18:32:22 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-09-24 18:32:22 +0000
commitd3a922570c914e3aa360ba3d623435b6236ccc1a (patch)
treee8187f2205e74222874f261ae47ff67da0e34d3d
parent6e3f86af3c7b1023c40588d4a74a24adadaaf850 (diff)
downloadsrc-d3a922570c914e3aa360ba3d623435b6236ccc1a.tar.gz
src-d3a922570c914e3aa360ba3d623435b6236ccc1a.zip
MFC: (1.12) resp is a pointer to an array of structs.
Notes
Notes: svn path=/releng/4.6/; revision=120409
-rw-r--r--crypto/openssh/auth2-pam-freebsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/openssh/auth2-pam-freebsd.c b/crypto/openssh/auth2-pam-freebsd.c
index 8ae8ee2e7666..193c2755a57e 100644
--- a/crypto/openssh/auth2-pam-freebsd.c
+++ b/crypto/openssh/auth2-pam-freebsd.c
@@ -76,8 +76,8 @@ pam_child_conv(int n,
*resp = xmalloc(n * sizeof **resp);
buffer_init(&buffer);
for (i = 0; i < n; ++i) {
- resp[i]->resp_retcode = 0;
- resp[i]->resp = NULL;
+ (*resp)[i].resp_retcode = 0;
+ (*resp)[i].resp = NULL;
switch (msg[i]->msg_style) {
case PAM_PROMPT_ECHO_OFF:
buffer_put_cstring(&buffer, msg[i]->msg);
@@ -85,7 +85,7 @@ pam_child_conv(int n,
msg_recv(ctxt->pam_sock, &buffer);
if (buffer_get_char(&buffer) != PAM_AUTHTOK)
goto fail;
- resp[i]->resp = buffer_get_string(&buffer, NULL);
+ (*resp)[i].resp = buffer_get_string(&buffer, NULL);
break;
case PAM_PROMPT_ECHO_ON:
buffer_put_cstring(&buffer, msg[i]->msg);
@@ -93,7 +93,7 @@ pam_child_conv(int n,
msg_recv(ctxt->pam_sock, &buffer);
if (buffer_get_char(&buffer) != PAM_AUTHTOK)
goto fail;
- resp[i]->resp = buffer_get_string(&buffer, NULL);
+ (*resp)[i].resp = buffer_get_string(&buffer, NULL);
break;
case PAM_ERROR_MSG:
buffer_put_cstring(&buffer, msg[i]->msg);