summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;