Fix a bug in channel_poll().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@709 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-05-04 10:46:52 +00:00
parent 0b7ae624a3
commit c4169e3c41

View File

@@ -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;
}
}