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

(cherry picked from commit e41ccc6470)
(cherry picked from commit ce5a5f9399)
This commit is contained in:
Jeremy Huddleston 2008-04-21 20:08:05 -07:00
parent 5ffb6a2fe8
commit 8822110d7d

View File

@ -270,7 +270,8 @@ dixLookupClient(ClientPtr *pClient, XID rid, ClientPtr client, Mask access)
*pClient = clients[clientIndex];
return Success;
bad:
client->errorValue = rid;
if(client)
client->errorValue = rid;
*pClient = NULL;
return rc;
}