mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Don't try sending on sharing channels.
The final main loop in do_ssh2_authconn will sometimes loop over all currently open channels calling ssh2_try_send_and_unthrottle. If the channel is a sharing one, however, that will reference fields of the channel structure like 'remwindow', which were never initialised in the first place (thanks, valgrind). Fix by excluding CHAN_SHARING channels from that loop.
This commit is contained in:
parent
0b2f283622
commit
7366fde1d4
3
ssh.c
3
ssh.c
@ -10524,7 +10524,8 @@ static void do_ssh2_authconn(Ssh ssh, const unsigned char *in, int inlen,
|
||||
* Try to send data on all channels if we can.
|
||||
*/
|
||||
for (i = 0; NULL != (c = index234(ssh->channels, i)); i++)
|
||||
ssh2_try_send_and_unthrottle(ssh, c);
|
||||
if (c->type != CHAN_SHARING)
|
||||
ssh2_try_send_and_unthrottle(ssh, c);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user