1
1

Fixed channel_poll broken when delayed EOF recvd

Previous code returned SSH_EOF even if data was left in buffer
Этот коммит содержится в:
Aris Adamantiadis 2009-08-09 00:20:42 +02:00
родитель 3ad559cc23
Коммит 807cb635c1

Просмотреть файл

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