aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 0edc785..5c12e1e 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -1607,7 +1607,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
}
while (buffer_get_rest_len(stdbuf) == 0 && channel->remote_eof == 0) {
- if (ssh_handle_packets(channel->session) < 0) {
+ if (ssh_handle_packets(channel->session) <= 0) {
break;
}
}