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

If we get a pop error, and there is no channel, we're done.

parent 3b1d4d68
No related branches found
No related tags found
No related merge requests found
Pipeline #5377 passed
......@@ -189,8 +189,7 @@ ssh_input_thread(void *args)
}
else {
gchstatus = CRYPT_OK;
if (!cryptStatusError(popstatus))
chan = -1;
chan = -1;
}
pthread_mutex_unlock(&ssh_mutex);
......@@ -223,7 +222,7 @@ ssh_input_thread(void *args)
}
if (cryptStatusError(popstatus)) {
if ((popstatus == CRYPT_ERROR_COMPLETE) || (popstatus == CRYPT_ERROR_READ)) { /* connection closed */
if (chan == -1 || (popstatus == CRYPT_ERROR_COMPLETE) || (popstatus == CRYPT_ERROR_READ)) { /* connection closed */
pthread_mutex_lock(&ssh_mutex);
status = cl.SetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, chan);
if (status != CRYPT_ERROR_NOTFOUND) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment