From 72cc6307257fcbb800267464487bf918ee674328 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 15 Mar 2006 16:32:05 +0000 Subject: Coverity #491: Check version number correctly. --- damageext/damageext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'damageext') 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; -- cgit v1.2.3