mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[core,freerdp] adjust disconnect provider ultimatum
do not send on cancel if the context is a server side one.
This commit is contained in:
@@ -317,8 +317,13 @@ BOOL freerdp_abort_connect_context(rdpContext* context)
|
||||
/* Try to send a [MS-RDPBCGR] 1.3.1.4.1 User-Initiated on Client PDU, we don't care about
|
||||
* success */
|
||||
if (context->rdp && context->rdp->mcs)
|
||||
(void)mcs_send_disconnect_provider_ultimatum(context->rdp->mcs,
|
||||
Disconnect_Ultimatum_user_requested);
|
||||
{
|
||||
if (!context->ServerMode)
|
||||
{
|
||||
(void)mcs_send_disconnect_provider_ultimatum(context->rdp->mcs,
|
||||
Disconnect_Ultimatum_user_requested);
|
||||
}
|
||||
}
|
||||
return utils_abort_connect(context->rdp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user