aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-07-17 23:51:15 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-07-17 23:51:15 +0200
commit8c08b062d0a1bebd7b9397036ea1b11b51577647 (patch)
tree4b90acd0b477be2923396c485040497a41b72d1c
parent96b06e8bb430342a416d0b31bf3554e52298a78f (diff)
downloadlibssh-8c08b062d0a1bebd7b9397036ea1b11b51577647.tar.gz
libssh-8c08b062d0a1bebd7b9397036ea1b11b51577647.tar.xz
libssh-8c08b062d0a1bebd7b9397036ea1b11b51577647.zip
Fixed channel opening failures (infinite loop)
-rw-r--r--libssh/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 06149ef..e372b41 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -201,7 +201,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open_fail){
(long unsigned int) ntohl(code),
error);
SAFE_FREE(error);
-
+ channel->state=SSH_CHANNEL_STATE_OPEN_DENIED;
return SSH_PACKET_USED;
}