diff options
Diffstat (limited to 'xserver/dri3/dri3_request.c')
-rw-r--r-- | xserver/dri3/dri3_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/dri3/dri3_request.c b/xserver/dri3/dri3_request.c index 2d7558863..2b3622148 100644 --- a/xserver/dri3/dri3_request.c +++ b/xserver/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); |