From c4169e3c413bfcf42f6cb69a01e9256b7136e559 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 4 May 2009 10:46:52 +0000 Subject: Fix a bug in channel_poll(). git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@709 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit