mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 03:58:03 +02:00
Fixed dixLookupClient to work with client=NullClient as it did in the 1.3 branch
This commit is contained in:
parent
3d28e9f953
commit
e41ccc6470
1 changed files with 3 additions and 1 deletions
|
|
@ -267,7 +267,9 @@ dixLookupClient(ClientPtr *pClient, XID rid, ClientPtr client, Mask access)
|
||||||
pointer pRes = (pointer)SecurityLookupIDByClass(client, rid, RC_ANY,
|
pointer pRes = (pointer)SecurityLookupIDByClass(client, rid, RC_ANY,
|
||||||
access);
|
access);
|
||||||
int clientIndex = CLIENT_ID(rid);
|
int clientIndex = CLIENT_ID(rid);
|
||||||
client->errorValue = rid;
|
|
||||||
|
if(client)
|
||||||
|
client->errorValue = rid;
|
||||||
|
|
||||||
if (clientIndex && pRes && clients[clientIndex] && !(rid & SERVER_BIT)) {
|
if (clientIndex && pRes && clients[clientIndex] && !(rid & SERVER_BIT)) {
|
||||||
*pClient = clients[clientIndex];
|
*pClient = clients[clientIndex];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue