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

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

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;
}