mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Improve kbdauth_send.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@642 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -1187,10 +1187,9 @@ static int kbdauth_send(SSH_SESSION *session) {
|
|||||||
|
|
||||||
enter_function();
|
enter_function();
|
||||||
|
|
||||||
if (buffer_add_u8(session->out_buffer,SSH2_MSG_USERAUTH_INFO_RESPONSE) < 0) {
|
if (buffer_add_u8(session->out_buffer, SSH2_MSG_USERAUTH_INFO_RESPONSE) < 0 ||
|
||||||
goto error;
|
buffer_add_u32(session->out_buffer,
|
||||||
}
|
htonl(session->kbdint->nprompts)) < 0) {
|
||||||
if (buffer_add_u32(session->out_buffer, htonl(session->kbdint->nprompts)) < 0) {
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user