From 3cbf24187eadd361cdf00567b6cd0e025e78b500 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 7 Dec 2011 19:09:29 +0000 Subject: [PATCH] Merge r9357 (missing free_prompts). [originally from svn r9358] [r9357 == bb542eaeff5f7964f74c5893b7d3bec8656f0589] --- ssh.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ssh.c b/ssh.c index fcb8dd96..695cc3d3 100644 --- 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.