Fixed dixLookupClient to work with client=NullClient as it did in the 1.3 branch

This commit is contained in:
Jeremy Huddleston 2008-04-21 19:48:13 -07:00
parent 3d28e9f953
commit e41ccc6470

View File

@ -267,7 +267,9 @@ dixLookupClient(ClientPtr *pClient, XID rid, ClientPtr client, Mask access)
pointer pRes = (pointer)SecurityLookupIDByClass(client, rid, RC_ANY,
access);
int clientIndex = CLIENT_ID(rid);
client->errorValue = rid;
if(client)
client->errorValue = rid;
if (clientIndex && pRes && clients[clientIndex] && !(rid & SERVER_BIT)) {
*pClient = clients[clientIndex];