mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 20:30:05 +01:00
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>
This commit is contained in:
parent
e130a46ab4
commit
2884b24929
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue