From 51502af33df91237196772ac06fd50190e36e198 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 29 Nov 2013 22:02:14 +0100 Subject: bus: fix callback index when dispatching kernel messages --- src/libsystemd-bus/bus-kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-54-g00ecf