libfreerdp-core/transport: check buffer even no bytes received in nonblocking.
This commit is contained in:
parent
7da790a1fa
commit
47e0eb5464
@ -220,7 +220,7 @@ int transport_check_fds(rdpTransport* transport)
|
||||
STREAM* received;
|
||||
|
||||
status = transport_read_nonblocking(transport);
|
||||
if (status <= 0)
|
||||
if (status < 0)
|
||||
return status;
|
||||
|
||||
while ((pos = stream_get_pos(transport->recv_buffer)) > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user