chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: fix hello ioctl buffer size calculation
[elogind.git]
/
src
/
libsystemd-bus
/
bus-kernel.c
diff --git
a/src/libsystemd-bus/bus-kernel.c
b/src/libsystemd-bus/bus-kernel.c
index 7997c1fc57e2848c3057f7dcaf0de2e07671bd2f..05544e1e477403716292383feef0cdcaaa2ab2e1 100644
(file)
--- 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_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);
if (b->fake_label) {
l = strlen(b->fake_label);