Ticket #125 (closed defect: fixed)

Opened 7 years ago

Last modified 5 years ago

memory leak in function "userauth_keyboard_interactive"

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: API Version:
Keywords: Cc:
Blocked By: Blocks:

Description

'userauth_keyboard_interactive' function will lost 110 byte everytime.I make some change in userauth.c line 1500

code:

session->userauth_kybd_packet_len +=

4 + session->userauth_kybd_responses[i].length;

}

+ LIBSSH2_FREE(session, session->userauth_kybd_data);

session->userauth_kybd_data = s =

LIBSSH2_ALLOC(session, session->userauth_kybd_packet_len);

if (!s) {

libssh2_error(session, LIBSSH2_ERROR_ALLOC,

"Unable to allocate memory for keyboard-"
"interactive response packet",
0);

goto cleanup;

}

Change History

comment:1 Changed 7 years ago by bagder

  • Milestone set to 1.2.5
  • Resolution set to fixed
  • Status changed from new to closed

Thank you, this is now fixed the git repo.

comment:3 Changed 5 years ago by bagder

  • Milestone 1.2.5 deleted

Milestone 1.2.5 deleted

Note: See TracTickets for help on using tickets.