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; }