chiark / gitweb /
bus: fix callback index when dispatching kernel messages
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Nov 2013 21:02:14 +0000 (22:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Nov 2013 21:03:55 +0000 (22:03 +0100)
src/libsystemd-bus/bus-kernel.c

index 54e85c9..796426b 100644 (file)
@@ -561,7 +561,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) {
                 return 0;
         }
 
                 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) {
 }
 
 int kdbus_translate_attach_flags(uint64_t mask, uint64_t *kdbus_mask) {