mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix minor mishandling of session typeahead.
When the connection layer is ready to receive user input, it sets the flag causing ssh_ppl_want_user_input to return true. But one thing it _didn't_ do was to check whether the user input bufchain already had some data in it because the user had typed ahead of the session setup, and send that input immediately if so. Now it does.
This commit is contained in:
parent
2ca0070f89
commit
cb6fa5fff6
@ -751,6 +751,7 @@ static void ssh1_connection_process_queue(PacketProtocolLayer *ppl)
|
||||
}
|
||||
|
||||
s->session_ready = TRUE;
|
||||
ssh_ppl_got_user_input(&s->ppl); /* in case any input is already queued */
|
||||
|
||||
/* If an EOF or a window-size change arrived before we were ready
|
||||
* to handle either one, handle them now. */
|
||||
|
@ -1335,8 +1335,10 @@ static void ssh2_connection_process_queue(PacketProtocolLayer *ppl)
|
||||
}
|
||||
|
||||
s->mainchan_ready = TRUE;
|
||||
if (s->mainchan)
|
||||
if (s->mainchan) {
|
||||
s->want_user_input = TRUE;
|
||||
ssh_ppl_got_user_input(&s->ppl); /* in case any is already queued */
|
||||
}
|
||||
|
||||
/* If an EOF or a window-size change arrived before we were ready
|
||||
* to handle either one, handle them now. */
|
||||
|
Loading…
Reference in New Issue
Block a user