Fixed channel_poll broken when delayed EOF recvd

Previous code returned SSH_EOF even if data was left in buffer
This commit is contained in:
Aris Adamantiadis
2009-08-09 00:20:42 +02:00
parent 3ad559cc23
commit 807cb635c1

View File

@@ -1748,6 +1748,9 @@ int channel_poll(ssh_channel channel, int is_stderr){
}
}
if (buffer_get_rest_len(stdbuf) > 0)
return buffer_get_rest_len(stdbuf);
if (channel->remote_eof) {
leave_function();
return SSH_EOF;