summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-11-06 21:25:52 -0500
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2006-11-06 21:25:52 -0500
commit3d39c02fe6aaa602c52f1d4f0ea6cd3bd000cf9f (patch)
tree83634894ffa961452b6789c172aee3bb6cb20403
parent75fe0670eb1f71144246f1c20759d58788bbee00 (diff)
More work on Bug #8875: revert previous fix and try using client argument
instead of serverClient. Also don't use totalClientSize as it is not initialized until after the first call to InitClient.
-rw-r--r--Xext/security.c6
-rw-r--r--dix/dispatch.c1
2 files changed, 2 insertions, 5 deletions
diff --git a/Xext/security.c b/Xext/security.c
index c5181edf5..ac762794a 100644
--- a/Xext/security.c
+++ b/Xext/security.c
@@ -1122,10 +1122,8 @@ CALLBACK(SecurityClientStateCallback)
switch (client->clientState)
{
case ClientStateInitial:
- if (client == serverClient) {
- TRUSTLEVEL(serverClient) = XSecurityClientTrusted;
- AUTHID(serverClient) = None;
- }
+ TRUSTLEVEL(client) = XSecurityClientTrusted;
+ AUTHID(client) = None;
break;
case ClientStateRunning:
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 2e7fa79ab..d8e3ae79b 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -3682,7 +3682,6 @@ extern unsigned totalClientSize;
void InitClient(ClientPtr client, int i, pointer ospriv)
{
- bzero(client, totalClientSize);
client->index = i;
client->sequence = 0;
client->clientAsMask = ((Mask)i) << CLIENTOFFSET;