Xi: take XI2 requests into account when checking opcodes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c94ea5bc05
commit
c11ef87931
|
@ -391,7 +391,7 @@ static int
|
||||||
ProcIDispatch(ClientPtr client)
|
ProcIDispatch(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xReq);
|
REQUEST(xReq);
|
||||||
if (stuff->data > IREQUESTS || !ProcIVector[stuff->data])
|
if (stuff->data > (IREQUESTS + XI2REQUESTS) || !ProcIVector[stuff->data])
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
|
|
||||||
return (*ProcIVector[stuff->data])(client);
|
return (*ProcIVector[stuff->data])(client);
|
||||||
|
|
Loading…
Reference in New Issue