From 249c892784ca5e8c75863dd82097ca2bedec4723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20B=C3=A4r?= Date: Tue, 24 Jun 2008 14:13:02 -0400 Subject: [PATCH] Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array. --- XTrap/xtrapdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XTrap/xtrapdi.c b/XTrap/xtrapdi.c index 52bd57aee..a4ba45b5f 100644 --- a/XTrap/xtrapdi.c +++ b/XTrap/xtrapdi.c @@ -487,7 +487,7 @@ int XETrapCreateEnv(ClientPtr client) XETrapEnv *penv = NULL; int status = Success; - if (client->index > MAXCLIENTS) + if (client->index >= MAXCLIENTS) { status = BadImplementation; }