libfreerdp-core: fix setting rdp->disconnect

This commit is contained in:
Marc-André Moreau 2012-10-02 10:28:04 -04:00
parent 67c7111236
commit 84b21a61c4
2 changed files with 9 additions and 1 deletions

View File

@ -539,6 +539,10 @@ int wfreerdp_run(freerdp* instance)
printf("Failed to check FreeRDP file descriptor\n");
break;
}
if (freerdp_shall_disconnect(instance))
{
break;
}
if (wf_check_fds(instance) != TRUE)
{
printf("Failed to check wfreerdp file descriptor\n");

View File

@ -228,8 +228,12 @@ boolean rdp_read_header(rdpRdp* rdp, STREAM* s, uint16* length, uint16* channel_
enum DomainMCSPDU MCSPDU;
MCSPDU = (rdp->settings->server_mode) ? DomainMCSPDU_SendDataRequest : DomainMCSPDU_SendDataIndication;
if (!mcs_read_domain_mcspdu_header(s, &MCSPDU, length))
return false ;
{
if (MCSPDU != DomainMCSPDU_DisconnectProviderUltimatum)
return false;
}
if (*length - 8 > stream_get_left(s))
return false;