diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-10-22 14:17:04 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-10-22 14:17:04 +0200 |
commit | c478ba2937b6a7e6c55b615ddeac3ca525f6a743 (patch) | |
tree | d653868d76c53ae89ff9f33d0c7becc3d5c77e16 /nx-X11/programs/Xserver/os/io.c | |
parent | d3bbca712dc7109539f9af985fe2d30a7c9b0419 (diff) | |
parent | da9d1a5298d34f36accfac0af3640d11e4f70543 (diff) | |
download | nx-libs-c478ba2937b6a7e6c55b615ddeac3ca525f6a743.tar.gz nx-libs-c478ba2937b6a7e6c55b615ddeac3ca525f6a743.tar.bz2 nx-libs-c478ba2937b6a7e6c55b615ddeac3ca525f6a743.zip |
Merge branch 'uli42-pr/fix_bigrequests' into 3.6.x
Attributes GH PR #729: https://github.com/ArcticaProject/nx-libs/pull/729
Diffstat (limited to 'nx-X11/programs/Xserver/os/io.c')
-rw-r--r-- | nx-X11/programs/Xserver/os/io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/os/io.c b/nx-X11/programs/Xserver/os/io.c index 6eeee349a..ad1fdcd20 100644 --- a/nx-X11/programs/Xserver/os/io.c +++ b/nx-X11/programs/Xserver/os/io.c @@ -301,7 +301,8 @@ ReadRequestFromClient(ClientPtr client) */ oci->lenLastReq = 0; - if (needed > MAXBUFSIZE) +#ifdef BIGREQS + if (needed > maxBigRequestSize << 2) { /* request is too big for us to handle */ /* @@ -312,6 +313,7 @@ ReadRequestFromClient(ClientPtr client) oci->lenLastReq = gotnow; return needed; } +#endif if ((gotnow == 0) || ((oci->bufptr - oci->buffer + needed) > oci->size)) { |