channels.c: Send the CHANNEL_OPTION_SHOW_PROTOCOL option only in client mode

According to MS-RDPBCGR section 2.2.1.3.4.1, this option should only be
sent as a client. If set by a server, mstsc will crash.
This commit is contained in:
Mati Shabtay 2019-07-08 13:14:49 +03:00 committed by akallabeth
parent 9045f1b343
commit 8298728663

View File

@ -94,7 +94,7 @@ BOOL freerdp_channel_send(rdpRdp* rdp, UINT16 channelId, const BYTE* data, int s
flags |= CHANNEL_FLAG_LAST; flags |= CHANNEL_FLAG_LAST;
} }
if ((channel->options & CHANNEL_OPTION_SHOW_PROTOCOL)) if (!rdp->settings->ServerMode && (channel->options & CHANNEL_OPTION_SHOW_PROTOCOL))
{ {
flags |= CHANNEL_FLAG_SHOW_PROTOCOL; flags |= CHANNEL_FLAG_SHOW_PROTOCOL;
} }