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
committed by Andreas Schneider
parent e8e874909f
commit 9abdc5ae2a

View File

@@ -1618,6 +1618,9 @@ int channel_poll(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;