aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-09 12:47:02 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-13 16:29:41 +0100
commit5581645500ca1cf2e71ac2dc600f194f2a5dc3b8 (patch)
tree1e0507d9df78994eaa8d160b5ee559ce81276d50 /src
parent3e64ef3bf531e22868e531898e9fde16867b3705 (diff)
downloadlibssh-5581645500ca1cf2e71ac2dc600f194f2a5dc3b8.tar.gz
libssh-5581645500ca1cf2e71ac2dc600f194f2a5dc3b8.tar.xz
libssh-5581645500ca1cf2e71ac2dc600f194f2a5dc3b8.zip
server: Fix malloc call.
Diffstat (limited to 'src')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index 0b627764..a8ecc6be 100644
--- a/src/server.c
+++ b/src/server.c
@@ -994,7 +994,7 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
msg->session->kbdint = NULL;
return SSH_ERROR;
}
- msg->session->kbdint->echo = malloc(num_prompts * sizeof(char));
+ msg->session->kbdint->echo = malloc(num_prompts * sizeof(unsigned char));
if (msg->session->kbdint->echo == NULL) {
ssh_set_error_oom(msg->session);
ssh_kbdint_free(msg->session->kbdint);