From b8c79452f643736097b985a0a500a79a3e92de65 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sat, 18 Feb 2017 22:51:50 -0800 Subject: [PATCH] encoder, remove check for UINT16_MAX, not really needed --- xrdp/xrdp_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 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;