aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2017-12-05 22:06:11 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-07 07:20:55 +0100
commit1771deaf134e3e93bf4f3242a6e613b645e96a52 (patch)
treee30af9620205d561744f85ad0b9f12bf8883660d /nx-X11/programs/Xserver
parentd31f107c63a7f6c13c212ade8172bcdb63faee2e (diff)
downloadnx-libs-1771deaf134e3e93bf4f3242a6e613b645e96a52.tar.gz
nx-libs-1771deaf134e3e93bf4f3242a6e613b645e96a52.tar.bz2
nx-libs-1771deaf134e3e93bf4f3242a6e613b645e96a52.zip
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: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/damageext/damageext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/damageext/damageext.c b/nx-X11/programs/Xserver/damageext/damageext.c
index b5e5d0b00..b9d99a53c 100644
--- a/nx-X11/programs/Xserver/damageext/damageext.c
+++ b/nx-X11/programs/Xserver/damageext/damageext.c
@@ -296,7 +296,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;