diff options
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index b65c83c..3c0e476 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -1187,10 +1187,9 @@ static int kbdauth_send(SSH_SESSION *session) { enter_function(); - if (buffer_add_u8(session->out_buffer,SSH2_MSG_USERAUTH_INFO_RESPONSE) < 0) { - goto error; - } - if (buffer_add_u32(session->out_buffer, htonl(session->kbdint->nprompts)) < 0) { + if (buffer_add_u8(session->out_buffer, SSH2_MSG_USERAUTH_INFO_RESPONSE) < 0 || + buffer_add_u32(session->out_buffer, + htonl(session->kbdint->nprompts)) < 0) { goto error; } |