XFixes: add version check for byteswapped clients
The version check for byteswapped clients was missing.
This commit is contained in:
parent
7eba412072
commit
31fb35a7af
|
@ -215,7 +215,11 @@ static _X_COLD int
|
||||||
SProcXFixesDispatch(ClientPtr client)
|
SProcXFixesDispatch(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXFixesReq);
|
REQUEST(xXFixesReq);
|
||||||
if (stuff->xfixesReqType >= XFixesNumberRequests)
|
XFixesClientPtr pXFixesClient = GetXFixesClient(client);
|
||||||
|
|
||||||
|
if (pXFixesClient->major_version >= ARRAY_SIZE(version_requests))
|
||||||
|
return BadRequest;
|
||||||
|
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
return (*SProcXFixesVector[stuff->xfixesReqType]) (client);
|
return (*SProcXFixesVector[stuff->xfixesReqType]) (client);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue