mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dix: add dixAllocServerXID()
Adding a separate function for allocating server-client's XIDs. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -70,7 +70,7 @@ MitAddCookie(unsigned short data_length, const char *data)
|
||||
mit_auth = new;
|
||||
memcpy(new->data, data, (size_t) data_length);
|
||||
new->len = data_length;
|
||||
new->id = FakeClientID(0);
|
||||
new->id = dixAllocServerXID();
|
||||
return new->id;
|
||||
}
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@ XdmAddCookie(unsigned short data_length, const char *data)
|
||||
xdmAuth = new;
|
||||
memcpy(new->key.data, key_bits, 8);
|
||||
memcpy(new->rho.data, rho_bits, 8);
|
||||
new->id = FakeClientID(0);
|
||||
new->id = dixAllocServerXID();
|
||||
return new->id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user