From 7ef8b10fecd8df62e9269408765eb629a2a88c34 Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Thu, 23 Jan 2020 15:16:14 +0100 Subject: [PATCH] core: Always send CS_MULTITRANSPORT PDU to server This PDU is required by Microsoft servers in order for bandwidth management to work correctly. Even if we do not support multi-transport for now we should just send a PDU with flags set to 0 to enable correct handing of bandwidth measurement PDUs. --- libfreerdp/core/gcc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libfreerdp/core/gcc.c b/libfreerdp/core/gcc.c index 866737b04..c7c62c82a 100644 --- a/libfreerdp/core/gcc.c +++ b/libfreerdp/core/gcc.c @@ -1985,11 +1985,8 @@ void gcc_write_client_multitransport_channel_data(wStream* s, rdpMcs* mcs) { rdpSettings* settings = mcs->settings; - if (settings->MultitransportFlags != 0) - { - gcc_write_user_data_header(s, CS_MULTITRANSPORT, 8); - Stream_Write_UINT32(s, settings->MultitransportFlags); /* flags */ - } + gcc_write_user_data_header(s, CS_MULTITRANSPORT, 8); + Stream_Write_UINT32(s, settings->MultitransportFlags); /* flags */ } BOOL gcc_read_server_multitransport_channel_data(wStream* s, rdpMcs* mcs)