aboutsummaryrefslogtreecommitdiff
path: root/libssh/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/channels.c')
-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;
}