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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user