diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-24 23:03:56 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-24 23:03:56 +0100 |
commit | 3407509ed72a9b387187e91e9a5274b5ef39bb88 (patch) | |
tree | 1db3314f6421f70938649761eb7f2fc792036b65 /libssh/messages.c | |
parent | 3ac62dda514e253ae4a08d8f755895cc6aa5ecac (diff) | |
download | libssh-3407509ed72a9b387187e91e9a5274b5ef39bb88.tar.gz libssh-3407509ed72a9b387187e91e9a5274b5ef39bb88.tar.xz libssh-3407509ed72a9b387187e91e9a5274b5ef39bb88.zip |
Correctly handle channel failures and chan states
Diffstat (limited to 'libssh/messages.c')
-rw-r--r-- | libssh/messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/messages.c b/libssh/messages.c index bbd7e439..8cd9ab55 100644 --- a/libssh/messages.c +++ b/libssh/messages.c @@ -467,7 +467,7 @@ ssh_channel ssh_message_channel_request_open_reply_accept(ssh_message msg) { chan->remote_channel = msg->channel_request_open.sender; chan->remote_maxpacket = msg->channel_request_open.packet_size; chan->remote_window = msg->channel_request_open.window; - chan->open = 1; + chan->state = SSH_CHANNEL_STATE_OPEN; if (buffer_add_u8(session->out_buffer, SSH2_MSG_CHANNEL_OPEN_CONFIRMATION) < 0) { goto error; |