Coverity #491: Check version number correctly.

This commit is contained in:
Adam Jackson 2006-03-15 16:32:05 +00:00
commit 72cc630725
2 changed files with 4 additions and 1 deletions

View file

@ -298,7 +298,7 @@ ProcDamageDispatch (ClientPtr client)
REQUEST(xDamageReq);
DamageClientPtr pDamageClient = GetDamageClient (client);
if (pDamageClient->major_version > NUM_VERSION_REQUESTS)
if (pDamageClient->major_version >= NUM_VERSION_REQUESTS)
return BadRequest;
if (stuff->damageReqType > version_requests[pDamageClient->major_version])
return BadRequest;