summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-24 15:38:30 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-24 15:38:30 +0100
commit96415cad2fdd8d280ae94b02651b5f826a2f7f3d (patch)
treeade93fd9491ad060501d29a20b31be36c0080816 /src
parentaedd330b13393518282bc6207cc9aac62c2991ab (diff)
bus: fix hello ioctl buffer size calculation
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index 7997c1fc57..05544e1e47 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);