Merge pull request #4136 from tditsch/master

Fixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION
This commit is contained in:
David Fort 2017-09-22 09:52:27 +02:00 committed by GitHub
commit b587daa416

View File

@ -997,8 +997,13 @@ int transport_check_fds(rdpTransport* transport)
ResetEvent(transport->rereadEvent);
}
while (!freerdp_shall_disconnect(transport->context->instance) && (now < dueDate))
while (now < dueDate)
{
if (freerdp_shall_disconnect(transport->context->instance)) {
return -1;
}
/**
* Note: transport_read_pdu tries to read one PDU from
* the transport layer.