aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-13 11:03:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-13 11:04:09 +0100
commitfdd1cb18d0d70965eb19ea9984449ee9a3cab932 (patch)
treeb1568e6f206eb64fe66060d358d947cc213aee07 /src
parenta0c05c4c4e21cef4f8b30dd174b63e31d7f3106e (diff)
downloadlibssh-fdd1cb18d0d70965eb19ea9984449ee9a3cab932.tar.gz
libssh-fdd1cb18d0d70965eb19ea9984449ee9a3cab932.tar.xz
libssh-fdd1cb18d0d70965eb19ea9984449ee9a3cab932.zip
auth: Fixed a memory leak in kdbint auth.
Milo please check!
Diffstat (limited to 'src')
-rw-r--r--src/auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth.c b/src/auth.c
index e0b3a7d5..92d9f2d2 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -1579,6 +1579,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_info_request) {
}
session->kbdint->nprompts = nprompts;
+ session->kbdint->nanswers = nprompts;
session->kbdint->prompts = malloc(nprompts * sizeof(char *));
if (session->kbdint->prompts == NULL) {
session->kbdint->nprompts = 0;