Skip to content
Snippets Groups Projects
Commit 81b1224c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

More remote closing connection fixups.

parent 014cb781
No related branches found
No related tags found
No related merge requests found
Pipeline #5380 passed
...@@ -227,7 +227,7 @@ ssh_input_thread(void *args) ...@@ -227,7 +227,7 @@ ssh_input_thread(void *args)
status = cl.SetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, chan); status = cl.SetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, chan);
if (status != CRYPT_ERROR_NOTFOUND) { if (status != CRYPT_ERROR_NOTFOUND) {
cl.SetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL_ACTIVE, 0); cl.SetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL_ACTIVE, 0);
if (chan == ssh_channel) { if (chan == ssh_channel || chan == -1) {
pthread_mutex_unlock(&ssh_mutex); pthread_mutex_unlock(&ssh_mutex);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment