userauth: Fixed prompt text no longer being copied to the prompts struct

Regression from 031566f9c
This commit is contained in:
Will Cosgrove 2015-03-11 14:58:48 -07:00 committed by Daniel Stenberg
parent 33e1013d7b
commit fe3e23022b

View File

@ -1540,6 +1540,8 @@ userauth_keyboard_interactive(LIBSSH2_SESSION * session,
"keyboard-interactive prompt message");
goto cleanup;
}
memcpy(session->userauth_kybd_prompts[i].text, s,
session->userauth_kybd_prompts[i].length);
s += session->userauth_kybd_prompts[i].length;
/* boolean echo[1] */