]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Don't try sending on sharing channels.
authorSimon Tatham <anakin@pobox.com>
Sun, 7 Jun 2015 20:14:09 +0000 (21:14 +0100)
committerSimon Tatham <anakin@pobox.com>
Sun, 7 Jun 2015 20:25:35 +0000 (21:25 +0100)
commit7366fde1d4831dcc701bc31e9de1113636fba1c5
treec1ced691415a1b1d195ca3a691d0934623b35d1a
parent0b2f283622603242d8bce295e42342649aebbb97
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.
ssh.c