1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Call ssh_check_frozen when BPP consumes input.

In commit 0f405ae8a, I arranged to stop reading from the SSH
connection if the in_raw bufchain got too big. But in at least some
tools (this bit me just now with PSCP), nothing actually calls
ssh_check_frozen again when the bufchain clears, so it stays frozen.

Now ssh_check_frozen is non-static, and all the BPP implementations
call it whenever they consume data from ssh->in_raw.
This commit is contained in:
Simon Tatham
2019-02-17 19:06:03 +00:00
parent 85550641d7
commit 5bc6db4b96
7 changed files with 10 additions and 1 deletions

2
ssh.c
View File

@ -317,7 +317,7 @@ static void ssh_got_ssh_version(struct ssh_version_receiver *rcv,
ssh_bpp_free(old_bpp);
}
static void ssh_check_frozen(Ssh *ssh)
void ssh_check_frozen(Ssh *ssh)
{
if (!ssh->s)
return;