Merge pull request #159 from nfedera/transportfix

core: handle transport->recv_callback correctly
This commit is contained in:
Marc-André Moreau 2011-10-18 15:07:17 -07:00
commit a33a5005b8

View File

@ -347,7 +347,10 @@ int transport_check_fds(rdpTransport* transport)
stream_set_pos(received, length);
stream_seal(received);
stream_set_pos(received, 0);
status = transport->recv_callback(transport, received, transport->recv_extra);
if (transport->recv_callback(transport, received, transport->recv_extra) == False)
status = -1;
stream_free(received);
if (status < 0)