diff --git a/xserver/Xi/extinit.c b/xserver/Xi/extinit.c index fb8ad19ba..6b885d138 100644 --- a/xserver/Xi/extinit.c +++ b/xserver/Xi/extinit.c @@ -429,7 +429,7 @@ static int SProcIDispatch(ClientPtr client) { REQUEST(xReq); - if (stuff->data > IREQUESTS || !SProcIVector[stuff->data]) + if (stuff->data > (IREQUESTS + XI2REQUESTS) || !SProcIVector[stuff->data]) return BadRequest; return (*SProcIVector[stuff->data])(client);