summaryrefslogtreecommitdiff
path: root/dri3
diff options
context:
space:
mode:
Diffstat (limited to 'dri3')
-rw-r--r--dri3/dri3_request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index 2d7558863..2b3622148 100644
--- a/dri3/dri3_request.c
+++ b/dri3/dri3_request.c
@@ -312,6 +312,8 @@ int
proc_dri3_dispatch(ClientPtr client)
{
REQUEST(xReq);
+ if (!client->local)
+ return BadMatch;
if (stuff->data >= DRI3NumberRequests || !proc_dri3_vector[stuff->data])
return BadRequest;
return (*proc_dri3_vector[stuff->data]) (client);
@@ -405,6 +407,8 @@ int
sproc_dri3_dispatch(ClientPtr client)
{
REQUEST(xReq);
+ if (!client->local)
+ return BadMatch;
if (stuff->data >= DRI3NumberRequests || !sproc_dri3_vector[stuff->data])
return BadRequest;
return (*sproc_dri3_vector[stuff->data]) (client);