mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
While we're here, pad USERAUTH_INFO_RESPONSEs to 256 bytes too.
[originally from svn r5145]
This commit is contained in:
parent
e94042612f
commit
f1a22fb3cb
1
ssh.c
1
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! */
|
||||
|
Loading…
Reference in New Issue
Block a user