summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_encoder.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2017-02-18 22:51:50 -0800
committerjsorg71 <jay.sorg@gmail.com>2017-02-22 20:57:33 -0800
commitb8c79452f643736097b985a0a500a79a3e92de65 (patch)
treee9544840d1c14b277becd671579e38f8090e66f8 /xrdp/xrdp_encoder.c
parent79796b77b774fc07edae3663e3419f26492f7c85 (diff)
downloadxrdp-proprietary-b8c79452f643736097b985a0a500a79a3e92de65.tar.gz
xrdp-proprietary-b8c79452f643736097b985a0a500a79a3e92de65.zip
encoder, remove check for UINT16_MAX, not really needed
Diffstat (limited to 'xrdp/xrdp_encoder.c')
-rw-r--r--xrdp/xrdp_encoder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xrdp/xrdp_encoder.c b/xrdp/xrdp_encoder.c
index e6cfec27..45c78d10 100644
--- a/xrdp/xrdp_encoder.c
+++ b/xrdp/xrdp_encoder.c
@@ -328,8 +328,7 @@ process_enc_rfx(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
out_data = NULL;
out_data_bytes = 0;
- if ((enc->num_crects > 0) && (enc->num_crects <= UINT16_MAX) &&
- (enc->num_drects > 0) && (enc->num_drects <= UINT16_MAX))
+ if ((enc->num_crects > 0) && (enc->num_drects > 0))
{
alloc_bytes = XRDP_SURCMD_PREFIX_BYTES;
alloc_bytes += self->max_compressed_bytes;