mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 18:07:59 +00:00
SSH2 channel fix: received WINDOW_ADJUSTs were always applied to the
primary (shell session) channel, rather than the one they were aimed at. This _despite_ me having deliberately gone and looked the channel ID up in the B-tree - I was ignoring the result by accident :-/ X forwarding should now work in SSH2 even on non-trivial clients (ie things other than xdpyinfo). [originally from svn r1007]
This commit is contained in:
parent
02f012a66a
commit
c152034706
2
ssh.c
2
ssh.c
@ -3769,7 +3769,7 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
|
|||||||
c = find234(ssh_channels, &i, ssh_channelfind);
|
c = find234(ssh_channels, &i, ssh_channelfind);
|
||||||
if (!c)
|
if (!c)
|
||||||
continue; /* nonexistent channel */
|
continue; /* nonexistent channel */
|
||||||
mainchan->v2.remwindow += ssh2_pkt_getuint32();
|
c->v2.remwindow += ssh2_pkt_getuint32();
|
||||||
try_send = TRUE;
|
try_send = TRUE;
|
||||||
} else if (pktin.type == SSH2_MSG_CHANNEL_OPEN) {
|
} else if (pktin.type == SSH2_MSG_CHANNEL_OPEN) {
|
||||||
char *type;
|
char *type;
|
||||||
|
Loading…
Reference in New Issue
Block a user