libfreerdp-core: fix setting rdp->disconnect
This commit is contained in:
parent
67c7111236
commit
84b21a61c4
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user