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

Likely fix a bunch of Coverity warnings.

This is a very crazy lock/unlock pattern... an extra assignment
makes it easier to follow the logic.
parent b8bc029b
No related branches found
No related tags found
No related merge requests found
Pipeline #5869 passed
......@@ -536,7 +536,7 @@ add_public_key(void *vpriv)
} else {
status = cryptGetAttribute(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL, &new_sftp_channel);
if (cryptStatusError(status)) {
sftp_channel = -1;
sftp_channel = new_sftp_channel = -1;
pthread_mutex_unlock(&ssh_mutex);
cryptlib_error_message(status, "getting new channel");
}
......
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