From f1a22fb3cb4a31a4dd70b9eb995046dee9a47b27 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 19 Jan 2005 17:41:21 +0000 Subject: [PATCH] While we're here, pad USERAUTH_INFO_RESPONSEs to 256 bytes too. [originally from svn r5145] --- ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh.c b/ssh.c index bf223bcd..4a09a645 100644 --- 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! */