summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libxrdp/xrdp_fastpath.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libxrdp/xrdp_fastpath.c b/libxrdp/xrdp_fastpath.c
index 27877ef1..9ba171f0 100644
--- a/libxrdp/xrdp_fastpath.c
+++ b/libxrdp/xrdp_fastpath.c
@@ -169,6 +169,11 @@ xrdp_fastpath_process_EVENT_MOUSE(struct xrdp_fastpath *self, int eventFlags,
int xPos;
int yPos;
+ /* eventFlags MUST be zeroed out */
+ if (eventFlags != 0) {
+ return 1;
+ }
+
if (!s_check_rem(s, 2 + 2 + 2))
{
return 1;
@@ -201,6 +206,11 @@ xrdp_fastpath_process_EVENT_MOUSEX(struct xrdp_fastpath *self,
int xPos;
int yPos;
+ /* eventFlags MUST be zeroed out */
+ if (eventFlags != 0) {
+ return 1;
+ }
+
if (!s_check_rem(s, 2 + 2 + 2))
{
return 1;