summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-12-06 11:59:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-12-17 15:01:55 +1000
commit2884b249294e3e8fc749bbb81e2a897314fa0818 (patch)
tree9e46d75e090c60200814711e01c1289d99e3665f /Xi
parente130a46ab45839f91b29ee75bf19a597dfe3da28 (diff)
barriers: Don't allow destroying other client's barriers
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xibarriers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/xibarriers.c b/Xi/xibarriers.c
index f16094d45..86e811ea1 100644
--- a/Xi/xibarriers.c
+++ b/Xi/xibarriers.c
@@ -534,6 +534,9 @@ XIDestroyPointerBarrier(ClientPtr client,
return err;
}
+ if (CLIENT_ID(stuff->barrier) != client->index)
+ return BadAccess;
+
FreeResource(stuff->barrier, RT_NONE);
return Success;
}