1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-12 15:41:16 +03:00

server: Fix echo access in ssh_message_auth_interactive_request()

Fixes T94

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-08-03 19:08:57 +02:00
parent 9305762fcd
commit e6020f94bf

View File

@@ -921,7 +921,7 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
rc = ssh_buffer_pack(msg->session->out_buffer,
"sb",
prompts[i],
echo[1] ? 1 : 0);
echo[i] ? 1 : 0);
if (rc != SSH_OK){
ssh_set_error_oom(msg->session);
return SSH_ERROR;