]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add a missing free_prompts() call in the keyboard-interactive code.
authorSimon Tatham <anakin@pobox.com>
Wed, 7 Dec 2011 19:07:02 +0000 (19:07 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 7 Dec 2011 19:07:02 +0000 (19:07 +0000)
[originally from svn r9357]

ssh.c

diff --git a/ssh.c b/ssh.c
index aabbcc4a078e2b71c48a8c166bad7ce43ec5da53..3464ea54614875f41a927b07037a460f2d329fcd 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -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.