1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

auth: Fixed a memory leak in kdbint auth.

Milo please check!
This commit is contained in:
Andreas Schneider
2011-02-13 11:03:24 +01:00
parent a0c05c4c4e
commit fdd1cb18d0

View File

@@ -1579,6 +1579,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_info_request) {
} }
session->kbdint->nprompts = nprompts; session->kbdint->nprompts = nprompts;
session->kbdint->nanswers = nprompts;
session->kbdint->prompts = malloc(nprompts * sizeof(char *)); session->kbdint->prompts = malloc(nprompts * sizeof(char *));
if (session->kbdint->prompts == NULL) { if (session->kbdint->prompts == NULL) {
session->kbdint->nprompts = 0; session->kbdint->nprompts = 0;