~vcs-imports/putty/master

Viewing all changes in revision 5449.

  • Committer: Simon Tatham
  • Date: 2019-04-20 07:02:52 UTC
  • Revision ID: git-v1:4dcc0fddf773174132d579e26b41cbda547b2bb5
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: