diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-05-04 10:46:52 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-05-04 10:46:52 +0000 |
commit | c4169e3c413bfcf42f6cb69a01e9256b7136e559 (patch) | |
tree | de45339efe3a73258291483e3736e3e1bb1e29fd | |
parent | 0b7ae624a3ac3d22d377390e3a44703b6c7c8963 (diff) | |
download | libssh-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
-rw-r--r-- | libssh/channels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index 0edc785c..5c12e1ef 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; } } |