[systemd-commits] src/libsystemd-bus
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Dec 24 06:38:57 PST 2013
src/libsystemd-bus/bus-kernel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 96415cad2fdd8d280ae94b02651b5f826a2f7f3d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 24 15:38:30 2013 +0100
bus: fix hello ioctl buffer size calculation
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index 7997c1f..05544e1 100644
--- a/src/libsystemd-bus/bus-kernel.c
+++ b/src/libsystemd-bus/bus-kernel.c
@@ -332,7 +332,7 @@ int bus_kernel_take_fd(sd_bus *b) {
sz = ALIGN8(offsetof(struct kdbus_cmd_hello, items));
if (b->fake_creds_valid)
- sz += ALIGN8(offsetof(struct kdbus_item, creds));
+ sz += ALIGN8(offsetof(struct kdbus_item, creds)) + sizeof(struct kdbus_creds);
if (b->fake_label) {
l = strlen(b->fake_label);
More information about the systemd-commits
mailing list