Skip to content
Snippets Groups Projects
Commit 04a58919 authored by Ravi Raaja's avatar Ravi Raaja Committed by Jakub Jelen
Browse files

Fix: NULL pointer check in ssh_channel_is_closed

The ssh_channel_is_closed function would crash when
accessing channel->session->alive if session is NULL.
This patch adds a null check before accessing the session
pointer.

- build succeeded
- unit test passed
- no new unit test added

libssh/libssh-mirror#239



Signed-off-by: default avatarRaviraaja Lakshmanan <mailstoraviraaja@gmail.com>
Reviewed-by: default avatarJakub Jelen <jjelen@redhat.com>
parent b106211d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment