diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-29 22:02:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-29 22:03:55 +0100 |
commit | 51502af33df91237196772ac06fd50190e36e198 (patch) | |
tree | 27a2aa89191df33239cb9c16a5ecfd390df9e69e | |
parent | 7d22c717329c6317f97ccd0f68040a3a2b98e760 (diff) |
bus: fix callback index when dispatching kernel messages
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index 54e85c9443..796426b561 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -561,7 +561,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) { return 0; } - return translate[found->type](bus, k, d); + return translate[found->type - _KDBUS_ITEM_KERNEL_BASE](bus, k, found); } int kdbus_translate_attach_flags(uint64_t mask, uint64_t *kdbus_mask) { |