mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-03 20:40:28 +01:00
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
(cherry picked from 3d39c02fe6 commit)
This commit is contained in:
parent
3e39bae79f
commit
e6778fee47
2 changed files with 2 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -3618,7 +3618,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue