]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Merge r9357 (missing free_prompts).
authorSimon Tatham <anakin@pobox.com>
Wed, 7 Dec 2011 19:09:29 +0000 (19:09 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 7 Dec 2011 19:09:29 +0000 (19:09 +0000)
[originally from svn r9358]
[r9357 == bb542eaeff5f7964f74c5893b7d3bec8656f0589]

ssh.c

diff --git a/ssh.c b/ssh.c
index fcb8dd96e8464eec70d95cf05fa4f4b2dbc45f68..695cc3d3f76359f8eea7fa1a76ecf94953117118 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -8411,6 +8411,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.