diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2017-02-18 22:51:50 -0800 |
---|---|---|
committer | jsorg71 <jay.sorg@gmail.com> | 2017-02-22 20:57:33 -0800 |
commit | b8c79452f643736097b985a0a500a79a3e92de65 (patch) | |
tree | e9544840d1c14b277becd671579e38f8090e66f8 /xrdp/xrdp_encoder.c | |
parent | 79796b77b774fc07edae3663e3419f26492f7c85 (diff) | |
download | xrdp-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.c | 3 |
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; |