summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_orders_rail.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-10-17 20:32:47 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-10-17 20:32:47 -0700
commitf380f9e972eb49eef29cee383c6ef9d4a22201d1 (patch)
tree1d797f38ed16f5250b0e266dd42a696b6168ddd4 /libxrdp/xrdp_orders_rail.c
parenta695886f816f86b08b3890895118fb9e88f7bf5d (diff)
downloadxrdp-proprietary-f380f9e972eb49eef29cee383c6ef9d4a22201d1.tar.gz
xrdp-proprietary-f380f9e972eb49eef29cee383c6ef9d4a22201d1.zip
libxrdp: Authentic8 fixes for xrdp_orders_check
Diffstat (limited to 'libxrdp/xrdp_orders_rail.c')
-rw-r--r--libxrdp/xrdp_orders_rail.c35
1 files changed, 28 insertions, 7 deletions
diff --git a/libxrdp/xrdp_orders_rail.c b/libxrdp/xrdp_orders_rail.c
index bd91b543..91d4b607 100644
--- a/libxrdp/xrdp_orders_rail.c
+++ b/libxrdp/xrdp_orders_rail.c
@@ -34,7 +34,10 @@ xrdp_orders_send_window_delete(struct xrdp_orders *self, int window_id)
int field_present_flags;
order_size = 11;
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */
@@ -64,7 +67,10 @@ xrdp_orders_send_window_cached_icon(struct xrdp_orders *self,
int field_present_flags;
order_size = 14;
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */
@@ -155,7 +161,10 @@ xrdp_orders_send_window_icon(struct xrdp_orders *self,
order_size += icon_info->cmap_bytes + 2;
}
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */
@@ -324,7 +333,10 @@ xrdp_orders_send_window_new_update(struct xrdp_orders *self, int window_id,
order_size += 8 * window_state->num_visibility_rects;
}
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */
@@ -465,7 +477,10 @@ xrdp_orders_send_notify_delete(struct xrdp_orders *self, int window_id,
int field_present_flags;
order_size = 15;
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */
@@ -560,7 +575,10 @@ xrdp_orders_send_notify_new_update(struct xrdp_orders *self,
order_size += 3;
}
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */
@@ -651,7 +669,10 @@ xrdp_orders_send_monitored_desktop(struct xrdp_orders *self,
order_size += mdo->num_window_ids * 4;
}
- xrdp_orders_check(self, order_size);
+ if (xrdp_orders_check(self, order_size) != 0)
+ {
+ return 1;
+ }
self->order_count++;
order_flags = RDP_ORDER_SECONDARY;
order_flags |= 0xb << 2; /* type TS_ALTSEC_WINDOW */