Coverity #487: Check version number correctly.

This commit is contained in:
Adam Jackson
2006-03-15 16:33:12 +00:00
parent 72cc630725
commit 152090ce44
2 changed files with 4 additions and 1 deletions

View File

@@ -143,7 +143,7 @@ ProcXFixesDispatch (ClientPtr client)
REQUEST(xXFixesReq);
XFixesClientPtr pXFixesClient = GetXFixesClient (client);
if (pXFixesClient->major_version > NUM_VERSION_REQUESTS)
if (pXFixesClient->major_version >= NUM_VERSION_REQUESTS)
return BadRequest;
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
return BadRequest;