]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - ssh.c
Fix a crash when connection-sharing during userauth.
authorSimon Tatham <anakin@pobox.com>
Mon, 22 Jun 2015 18:37:27 +0000 (19:37 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 22 Jun 2015 18:37:27 +0000 (19:37 +0100)
commit31ff9e0f96ad946326453ccaec99d1ab8254c9bd
treea8d22b732184e32bf75dc403bec93d6520e7c2b7
parent06946b4d4b3816fc2b26dd650a0b9d379fabdd85
Fix a crash when connection-sharing during userauth.

If a sharing downstream disconnected while we were still in userauth
(probably by deliberate user action, since such a downstream would
have just been sitting there waiting for upstream to be ready for it)
then we could crash by attempting to count234(ssh->channels) before
the ssh->channels tree had been set up in the first place.

A simple null-pointer check fixes it. Thanks to Antti Seppanen for the
report.
ssh.c