Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel closing safety #13

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Channel closing safety #13

merged 2 commits into from
Sep 24, 2024

Conversation

JamesWrigley
Copy link
Collaborator

No description provided.

If the remote end disconnects it seems that libssh will disconnect/free the
`ssh_session`'s channels. This can lead to an `SshChannel` carrying around a
pointer to an address that's already been free'd, which leads to segfaults. Now
we always check if the session has been disconnected when checking if a
`SshChannel` is open and when closing it.
@JamesWrigley JamesWrigley self-assigned this Sep 24, 2024
@JamesWrigley JamesWrigley merged commit ef719b4 into master Sep 24, 2024
4 checks passed
@JamesWrigley JamesWrigley deleted the channel-closing branch September 24, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant