diff options
| author | Roland Bär <roland@verifysoft.de> | 2008-06-24 14:13:02 -0400 |
|---|---|---|
| committer | Adam Jackson <ajax@redhat.com> | 2008-06-24 14:13:02 -0400 |
| commit | 249c892784ca5e8c75863dd82097ca2bedec4723 (patch) | |
| tree | 694477cd977a5c449f8d7148b8facc223aea5ae1 | |
| parent | 9e5b3deafb97ec1f83e6bfe067bc68df7385bc6a (diff) | |
Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array.
| -rw-r--r-- | XTrap/xtrapdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
