aboutsummaryrefslogtreecommitdiff
path: root/libssh/channels1.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-07-23 11:01:06 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-07-23 11:01:06 +0200
commite721c122d3f453094d4ab27040765974620f15ef (patch)
tree5ef53f6dbd202e07c1b01748b76d76dff292c4ec /libssh/channels1.c
parent8cd0d0040e70b5a1ab0a8d8588190dd88f17ce4f (diff)
downloadlibssh-e721c122d3f453094d4ab27040765974620f15ef.tar.gz
libssh-e721c122d3f453094d4ab27040765974620f15ef.tar.xz
libssh-e721c122d3f453094d4ab27040765974620f15ef.zip
Continue removing old flushing code
Diffstat (limited to 'libssh/channels1.c')
-rw-r--r--libssh/channels1.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libssh/channels1.c b/libssh/channels1.c
index 293e5fde..4cf7e778 100644
--- a/libssh/channels1.c
+++ b/libssh/channels1.c
@@ -111,7 +111,7 @@ int channel_request_pty_size1(ssh_channel channel, const char *terminal, int col
ssh_log(session, SSH_LOG_FUNCTIONS, "Opening a ssh1 pty");
- if (packet_send(session) != SSH_OK) {
+ if (packet_send(session) == SSH_ERROR) {
return -1;
}
switch(channel->request_state){
@@ -149,7 +149,7 @@ int channel_change_pty_size1(ssh_channel channel, int cols, int rows) {
return SSH_ERROR;
}
channel->request_state=SSH_CHANNEL_REQ_STATE_PENDING;
- if (packet_send(session)) {
+ if (packet_send(session) == SSH_ERROR) {
return SSH_ERROR;
}
@@ -185,7 +185,7 @@ int channel_request_shell1(ssh_channel channel) {
return -1;
}
- if (packet_send(session) != SSH_OK) {
+ if (packet_send(session) == SSH_ERROR) {
return -1;
}
@@ -210,7 +210,7 @@ int channel_request_exec1(ssh_channel channel, const char *cmd) {
}
ssh_string_free(command);
- if(packet_send(session) != SSH_OK) {
+ if(packet_send(session) == SSH_ERROR) {
return -1;
}
@@ -286,7 +286,7 @@ int channel_write1(ssh_channel channel, const void *data, int len) {
ptr += effectivelen;
len -= effectivelen;
- if (packet_send(session) != SSH_OK) {
+ if (packet_send(session) == SSH_ERROR) {
return -1;
}
}