1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Add a missing free_prompts() call in the keyboard-interactive code.

[originally from svn r9357]
This commit is contained in:
Simon Tatham 2011-12-07 19:07:02 +00:00
parent 1682b42b87
commit bb542eaeff

7
ssh.c
View File

@ -8524,6 +8524,13 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
}
ssh2_pkt_send_with_padding(ssh, s->pktout, 256);
/*
* Free the prompts structure from this iteration.
* If there's another, a new one will be allocated
* when we return to the top of this while loop.
*/
free_prompts(s->cur_prompt);
/*
* Get the next packet in case it's another
* INFO_REQUEST.