aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-05-04 10:46:52 +0000
committerAndreas Schneider <mail@cynapses.org>2009-05-04 10:46:52 +0000
commitc4169e3c413bfcf42f6cb69a01e9256b7136e559 (patch)
treede45339efe3a73258291483e3736e3e1bb1e29fd /libssh
parent0b7ae624a3ac3d22d377390e3a44703b6c7c8963 (diff)
downloadlibssh-c4169e3c413bfcf42f6cb69a01e9256b7136e559.tar.gz
libssh-c4169e3c413bfcf42f6cb69a01e9256b7136e559.tar.xz
libssh-c4169e3c413bfcf42f6cb69a01e9256b7136e559.zip
Fix a bug in channel_poll().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@709 7dcaeef0-15fb-0310-b436-a5af3365683c
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;
}
}