From e41ccc64702f856e5e09dfa652fe73c14b8a0225 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 21 Apr 2008 19:48:13 -0700 Subject: [PATCH] Fixed dixLookupClient to work with client=NullClient as it did in the 1.3 branch --- dix/dixutils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dix/dixutils.c b/dix/dixutils.c index c1e30ff18..87c527507 100644 --- a/dix/dixutils.c +++ b/dix/dixutils.c @@ -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];