summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2016-05-18 00:24:16 -0400
committerspeidy <speidy@gmail.com>2016-05-18 00:24:16 -0400
commitf5ec7f410216cc6e569a7e5b2f9597a8be17bbcb (patch)
treeb0b2b5eb605b9baa1599afd5a5dfef15f342d4b8
parent881756a82ce50a26ed6e3b3c403d69cd81c8fea9 (diff)
downloadxrdp-proprietary-f5ec7f410216cc6e569a7e5b2f9597a8be17bbcb.tar.gz
xrdp-proprietary-f5ec7f410216cc6e569a7e5b2f9597a8be17bbcb.zip
libxrdp: oops, fix virtual desktop size check
-rw-r--r--libxrdp/xrdp_sec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index 9fcc7d13..af0cedf2 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -1970,8 +1970,8 @@ xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s)
client_info->height = (y2 - y1) + 1;
}
/* make sure virtual desktop size is ok */
- if ((client_info->width > 0x7FFE || client_info->width < 0xC8) ||
- (client_info->height > 0x7FFE || client_info->height < 0xC8))
+ if (client_info->width > 0x7FFE || client_info->width < 0xC8 ||
+ client_info->height > 0x7FFE || client_info->height < 0xC8)
{
LLOGLN(0, ("[ERROR] xrdp_sec_process_mcs_data_monitors: error, virtual desktop width / height is too large"));
return 1; /* error */