]> 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>
Sat, 20 Jun 2015 11:47:42 +0000 (12:47 +0100)
commitd75d136c68f174c9f94f283ba515fefbe4ce69ab
tree104ea2e10635f01e430763172be34b73942b8d10
parentae93b52a9c80d84470250ae8595d2cdf1448562a
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.

(cherry picked from commit 7366fde1d4831dcc701bc31e9de1113636fba1c5)
ssh.c