diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-07-23 11:01:06 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-07-23 11:01:06 +0200 |
commit | e721c122d3f453094d4ab27040765974620f15ef (patch) | |
tree | 5ef53f6dbd202e07c1b01748b76d76dff292c4ec /libssh/channels.c | |
parent | 8cd0d0040e70b5a1ab0a8d8588190dd88f17ce4f (diff) | |
download | libssh-e721c122d3f453094d4ab27040765974620f15ef.tar.gz libssh-e721c122d3f453094d4ab27040765974620f15ef.tar.xz libssh-e721c122d3f453094d4ab27040765974620f15ef.zip |
Continue removing old flushing code
Diffstat (limited to 'libssh/channels.c')
-rw-r--r-- | libssh/channels.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index e372b41..24cec4c 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -263,7 +263,7 @@ static int channel_open(ssh_channel channel, const char *type_c, int window, } } - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return err; } @@ -314,7 +314,7 @@ static int grow_window(ssh_session session, ssh_channel channel, int minimumsize goto error; } - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { /* FIXME should we fail here or not? */ leave_function(); return 1; @@ -979,7 +979,7 @@ int channel_write_common(ssh_channel channel, const void *data, goto error; } - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return SSH_ERROR; } @@ -1176,7 +1176,7 @@ static int channel_request(ssh_channel channel, const char *request, } } channel->request_state = SSH_CHANNEL_REQ_STATE_PENDING; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } @@ -1632,7 +1632,7 @@ static int global_request(ssh_session session, const char *request, } } session->global_req_state = SSH_CHANNEL_REQ_STATE_PENDING; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } |