1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

Stop calling ssh2_set_window in SSH-1!

This must have been a bug introduced during the SSH-2 connection
sharing rework. Apparently nobody's ever re-tested SSH-1 X forwarding
since then - until I did so yesterday in the course of testing my
enormous refactor of the packet unmarshalling code.
This commit is contained in:
Simon Tatham 2018-06-03 07:11:10 +01:00
parent 7079cf06c8
commit 2b54c86e7e

4
ssh.c
View File

@ -9456,7 +9456,9 @@ void sshfwd_x11_is_local(struct ssh_channel *c)
* exchange mode.
*/
c->u.x11.initial = FALSE;
ssh2_set_window(c, ssh_is_simple(c->ssh) ? OUR_V2_BIGWIN : OUR_V2_WINSIZE);
if (c->ssh->version == 2)
ssh2_set_window(
c, ssh_is_simple(c->ssh) ? OUR_V2_BIGWIN : OUR_V2_WINSIZE);
}
/*