While we're here, pad USERAUTH_INFO_RESPONSEs to 256 bytes too.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 19 Jan 2005 17:41:21 +0000 (17:41 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 19 Jan 2005 17:41:21 +0000 (17:41 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5145 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index bf223bc..4a09a64 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -6791,6 +6791,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
            } else if (s->method == AUTH_KEYBOARD_INTERACTIVE) {
                if (s->curr_prompt == 0) {
                    s->pktout = ssh2_pkt_init(SSH2_MSG_USERAUTH_INFO_RESPONSE);
+                   s->pktout->forcepad = 256;
                    ssh2_pkt_adduint32(s->pktout, s->num_prompts);
                }
                if (s->need_pw) {      /* only add pw if we just got one! */