1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

ssh1_rdpkt: remove a spurious crReturn.

Returning from the coroutine every time we finish putting together a
packet is wrong, because it means that any further data in the
incoming queue won't get processed until something triggers another
call to the coroutine. In ssh2_rdpkt I got this right - the only
crReturn that _isn't_ due to running out of data is the special one
immediately after a NEWKEYS - but I forgot to fix it the same way in
ssh1_rdpkt.
This commit is contained in:
Simon Tatham 2018-05-18 11:49:00 +01:00
parent 7e984e5f9d
commit 18ab91a199

1
ssh.c
View File

@ -1602,7 +1602,6 @@ static void ssh1_rdpkt(Ssh ssh)
pq_push(&ssh->pq_full, st->pktin); pq_push(&ssh->pq_full, st->pktin);
queue_idempotent_callback(&ssh->pq_full_consumer); queue_idempotent_callback(&ssh->pq_full_consumer);
crReturnV;
} }
crFinishV; crFinishV;
} }