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.
This commit is contained in:
@@ -1122,10 +1122,8 @@ CALLBACK(SecurityClientStateCallback)
|
|||||||
switch (client->clientState)
|
switch (client->clientState)
|
||||||
{
|
{
|
||||||
case ClientStateInitial:
|
case ClientStateInitial:
|
||||||
if (client == serverClient) {
|
TRUSTLEVEL(client) = XSecurityClientTrusted;
|
||||||
TRUSTLEVEL(serverClient) = XSecurityClientTrusted;
|
AUTHID(client) = None;
|
||||||
AUTHID(serverClient) = None;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ClientStateRunning:
|
case ClientStateRunning:
|
||||||
|
|||||||
@@ -3682,7 +3682,6 @@ extern unsigned totalClientSize;
|
|||||||
|
|
||||||
void InitClient(ClientPtr client, int i, pointer ospriv)
|
void InitClient(ClientPtr client, int i, pointer ospriv)
|
||||||
{
|
{
|
||||||
bzero(client, totalClientSize);
|
|
||||||
client->index = i;
|
client->index = i;
|
||||||
client->sequence = 0;
|
client->sequence = 0;
|
||||||
client->clientAsMask = ((Mask)i) << CLIENTOFFSET;
|
client->clientAsMask = ((Mask)i) << CLIENTOFFSET;
|
||||||
|
|||||||
Reference in New Issue
Block a user