diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2015-12-11 20:05:40 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2015-12-11 20:05:40 -0800 |
commit | 96a237c8efdc32ef531d488d3f771084ff21086a (patch) | |
tree | 5f294d00a10727d6bd6e8dbdefadcd0778934c18 /libxrdp/xrdp_orders_rail.c | |
parent | 83cff9809c30a9920a424f794d9e028c7635cb5e (diff) | |
download | xrdp-proprietary-96a237c8efdc32ef531d488d3f771084ff21086a.tar.gz xrdp-proprietary-96a237c8efdc32ef531d488d3f771084ff21086a.zip |
libxrdp: rail fix for when no flags are set
Diffstat (limited to 'libxrdp/xrdp_orders_rail.c')
-rw-r--r-- | libxrdp/xrdp_orders_rail.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libxrdp/xrdp_orders_rail.c b/libxrdp/xrdp_orders_rail.c index 91d4b607..3c5d5b63 100644 --- a/libxrdp/xrdp_orders_rail.c +++ b/libxrdp/xrdp_orders_rail.c @@ -333,6 +333,12 @@ xrdp_orders_send_window_new_update(struct xrdp_orders *self, int window_id, order_size += 8 * window_state->num_visibility_rects; } + if (order_size < 12) + { + /* no flags set */ + return 0; + } + if (xrdp_orders_check(self, order_size) != 0) { return 1; |