From ce5a5f93990647de85e535734ee6bb430ad591cb Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 21 Apr 2008 20:08:05 -0700 Subject: [PATCH] Fixed dixLookupClient to work with client=NullClient as it did in the 1.3 branch (cherry picked from commit e41ccc64702f856e5e09dfa652fe73c14b8a0225) --- dix/dixutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dix/dixutils.c b/dix/dixutils.c index aaf510623..22935cead 100644 --- a/dix/dixutils.c +++ b/dix/dixutils.c @@ -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; }