Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array.

(cherry picked from commit 249c892784)
This commit is contained in:
Roland Bär 2008-06-24 14:13:02 -04:00 committed by Adam Jackson
parent 429b2a97a0
commit 7351c07ae8

View File

@ -486,7 +486,7 @@ int XETrapCreateEnv(ClientPtr client)
XETrapEnv *penv = NULL;
int status = Success;
if (client->index > MAXCLIENTS)
if (client->index >= MAXCLIENTS)
{
status = BadImplementation;
}