summaryrefslogtreecommitdiff
path: root/config/dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'config/dbus.c')
-rw-r--r--config/dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/dbus.c b/config/dbus.c
index 6fe061815..f6ac4c11c 100644
--- a/config/dbus.c
+++ b/config/dbus.c
@@ -213,7 +213,7 @@ remove_device(DBusMessage *message, DBusMessage *reply, DBusError *error)
MALFORMED_MESSAGE_ERROR();
}
- dev = LookupDeviceIntRec(deviceid);
+ dixLookupDevice(&dev, deviceid, serverClient, DixUnknownAccess);
if (!dev) {
DebugF("[config/dbus] bogus device id %d given\n", deviceid);
ret = BadMatch;