xres: fix XResQueryClientIds always returning 0 clients
XaceHookClientAccess added in 098008879b
has incorrect condition in ConstructClientIds.
This fixes #182
Signed-off-by: dec05eba <dec05eba@protonmail.com>
This commit is contained in:
parent
fe4bc433a4
commit
4267785e6f
|
@ -516,7 +516,7 @@ ConstructClientIds(ClientPtr client,
|
|||
for (c = 0; c < currentMaxClients; ++c) {
|
||||
if (clients[c] &&
|
||||
(XaceHookClientAccess(client, clients[c], DixReadAccess)
|
||||
!= Success)) {
|
||||
== Success)) {
|
||||
if (!ConstructClientIdValue(client, clients[c],
|
||||
specs[specIdx].mask, ctx)) {
|
||||
return BadAlloc;
|
||||
|
@ -527,7 +527,7 @@ ConstructClientIds(ClientPtr client,
|
|||
ClientPtr owner = dixClientForXID(specs[specIdx].client);
|
||||
if (owner &&
|
||||
(XaceHookClientAccess(client, owner, DixReadAccess)
|
||||
!= Success)) {
|
||||
== Success)) {
|
||||
if (!ConstructClientIdValue(client, owner,
|
||||
specs[specIdx].mask, ctx)) {
|
||||
return BadAlloc;
|
||||
|
|
Loading…
Reference in New Issue