1
0
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:
Aris Adamantiadis
2011-09-23 22:27:46 +02:00
parent 8a3b02f68d
commit 046aa02f39
4 changed files with 9 additions and 2 deletions

View File

@@ -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 */