From 152090ce442e94de1ae920208a92931af6493c8c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 15 Mar 2006 16:33:12 +0000 Subject: Coverity #487: Check version number correctly. --- xfixes/xfixes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfixes') diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c index 9364309f4..a0e656dd8 100755 --- a/xfixes/xfixes.c +++ b/xfixes/xfixes.c @@ -143,7 +143,7 @@ ProcXFixesDispatch (ClientPtr client) REQUEST(xXFixesReq); XFixesClientPtr pXFixesClient = GetXFixesClient (client); - if (pXFixesClient->major_version > NUM_VERSION_REQUESTS) + if (pXFixesClient->major_version >= NUM_VERSION_REQUESTS) return BadRequest; if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version]) return BadRequest; -- cgit v1.2.3