summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_fastpath.c
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2014-03-12 06:43:59 +0200
committerspeidy <speidy@gmail.com>2014-03-12 06:43:59 +0200
commit744cdf9da1ae7cd4da4f8d01ae0f1cb448b9b071 (patch)
tree7d6f3ce6af52aedd93d18a3c2aba91c2d5dc9bdf /libxrdp/xrdp_fastpath.c
parent56ae4539a9e4b09dab25557d93611e0bb215f987 (diff)
parent630f735a28eca8c6cd4b64ac7e38abe6634a0698 (diff)
downloadxrdp-proprietary-744cdf9da1ae7cd4da4f8d01ae0f1cb448b9b071.tar.gz
xrdp-proprietary-744cdf9da1ae7cd4da4f8d01ae0f1cb448b9b071.zip
Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into devel
Diffstat (limited to 'libxrdp/xrdp_fastpath.c')
-rw-r--r--libxrdp/xrdp_fastpath.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libxrdp/xrdp_fastpath.c b/libxrdp/xrdp_fastpath.c
index 372e9079..8739c764 100644
--- a/libxrdp/xrdp_fastpath.c
+++ b/libxrdp/xrdp_fastpath.c
@@ -101,7 +101,14 @@ xrdp_fastpath_recv(struct xrdp_fastpath *self, struct stream *s)
int APP_CC
xrdp_fastpath_init(struct xrdp_fastpath *self, struct stream *s)
{
- init_stream(s, 32 * 1024);
+ int bytes;
+
+ bytes = self->session->client_info->max_fastpath_frag_bytes;
+ if (bytes < 32 * 1024)
+ {
+ bytes = 32 * 1024;
+ }
+ init_stream(s, bytes);
return 0;
}