summaryrefslogtreecommitdiff
path: root/damageext
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-03-15 16:32:05 +0000
committerAdam Jackson <ajax@nwnk.net>2006-03-15 16:32:05 +0000
commit72cc6307257fcbb800267464487bf918ee674328 (patch)
tree22ee3145cf500b3c076f8c95aa329b08cf92088f /damageext
parent460f2ea4a594a53536f34c4ad27795fceec50bcc (diff)
Coverity #491: Check version number correctly.
Diffstat (limited to 'damageext')
-rwxr-xr-xdamageext/damageext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/damageext/damageext.c b/damageext/damageext.c
index 616d55ecc..225f9ecf0 100755
--- a/damageext/damageext.c
+++ b/damageext/damageext.c
@@ -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;