From 1771deaf134e3e93bf4f3242a6e613b645e96a52 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 5 Dec 2017 22:06:11 +0100 Subject: Coverity # 491: Check version number correctly. Backported from X.org: commit 72cc6307257fcbb800267464487bf918ee674328 Author: Adam Jackson Date: Wed Mar 15 16:32:05 2006 +0000 Coverity # 491: Check version number correctly. Backported-to-NX-by: Ulrich Sibiller --- nx-X11/programs/Xserver/damageext/damageext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nx-X11/programs/Xserver/damageext') 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; -- cgit v1.2.3