From bfffc40cbaf7d783ed166f97507bec668a2df40f Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Tue, 26 May 2020 12:02:11 +0100 Subject: [PATCH] Ignore TS_MULTIFRAGMENTUPDATE_CAPABILITYSET from client if fp disabled --- libxrdp/xrdp_caps.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c index ead495ca..854d23b1 100644 --- a/libxrdp/xrdp_caps.c +++ b/libxrdp/xrdp_caps.c @@ -561,7 +561,10 @@ xrdp_caps_process_multifragmentupdate(struct xrdp_rdp *self, struct stream *s, int MaxRequestSize; in_uint32_le(s, MaxRequestSize); - self->client_info.max_fastpath_frag_bytes = MaxRequestSize; + if (self->client_info.use_fast_path & 1) + { + self->client_info.max_fastpath_frag_bytes = MaxRequestSize; + } return 0; }