mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
Fix bugs found by clang
This commit is contained in:
@@ -1542,7 +1542,7 @@ static int channel_request(ssh_channel channel, const char *request,
|
||||
}
|
||||
pending:
|
||||
rc = ssh_handle_packets_termination(session,SSH_TIMEOUT_USER, ssh_channel_request_termination, channel);
|
||||
if(session->session_state == SSH_SESSION_STATE_ERROR) {
|
||||
if(session->session_state == SSH_SESSION_STATE_ERROR || rc == SSH_ERROR) {
|
||||
channel->request_state = SSH_CHANNEL_REQ_STATE_ERROR;
|
||||
}
|
||||
/* we received something */
|
||||
|
Reference in New Issue
Block a user