Commit 1771deaf authored by Adam Jackson's avatar Adam Jackson Committed by Mihai Moldovan

Coverity # 491: Check version number correctly.

Backported from X.org: commit 72cc6307257fcbb800267464487bf918ee674328 Author: Adam Jackson <ajax@nwnk.net> Date: Wed Mar 15 16:32:05 2006 +0000 Coverity # 491: Check version number correctly. Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent d31f107c
...@@ -296,7 +296,7 @@ ProcDamageDispatch (ClientPtr client) ...@@ -296,7 +296,7 @@ ProcDamageDispatch (ClientPtr client)
REQUEST(xDamageReq); REQUEST(xDamageReq);
DamageClientPtr pDamageClient = GetDamageClient (client); DamageClientPtr pDamageClient = GetDamageClient (client);
if (pDamageClient->major_version > NUM_VERSION_REQUESTS) if (pDamageClient->major_version >= NUM_VERSION_REQUESTS)
return BadRequest; return BadRequest;
if (stuff->damageReqType > version_requests[pDamageClient->major_version]) if (stuff->damageReqType > version_requests[pDamageClient->major_version])
return BadRequest; return BadRequest;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment