simon-git: putty (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Apr 20 08:05:09 BST 2019


TL;DR:
  4dcc0fdd ssh2connection: clean up callbacks on exit.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2019-04-20 08:05:09

commit 4dcc0fddf773174132d579e26b41cbda547b2bb5
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=4dcc0fddf773174132d579e26b41cbda547b2bb5;hp=af01a6f07cd24b93aa811afc24e484ba825d04fb
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Apr 20 07:57:08 2019 +0100

    ssh2connection: clean up callbacks on exit.
    
    We use a toplevel callback in the SSH-2 connection layer for checking
    whether it's time to close the whole SSH session after a channel
    closes. If the channel close itself, or something close enough to it,
    involves a protocol error severe enough to abort the session and free
    the connection layer, then that callback can fire anyway on stale
    data.
    
    The fix is the same as it always is in these situations: any object
    which is ever used as the context parameter to queue_toplevel_callback
    should also be passed to delete_callbacks_for_context before freeing it.

 ssh2connection.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the tartarus-commits mailing list