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

This commit is contained in:
Roland Bär 2008-06-24 14:13:02 -04:00 committed by Adam Jackson
parent 9e5b3deafb
commit 249c892784

View File

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