summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-13 21:53:11 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-13 21:53:11 +0200
commit69aec65cf8da55e400cf0a4f213b0a48268ca19f (patch)
treee5509a3a634fbe4123b2b9d98311765032703125 /src/libsystemd-bus/bus-socket.c
parent5b7d4c1c164d91b8c28c3dcd3921ad9863953ffa (diff)
kdbus: parse even more kernel meta data fields
Diffstat (limited to 'src/libsystemd-bus/bus-socket.c')
-rw-r--r--src/libsystemd-bus/bus-socket.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/libsystemd-bus/bus-socket.c b/src/libsystemd-bus/bus-socket.c
index bce81aeffc..8a86b02c68 100644
--- a/src/libsystemd-bus/bus-socket.c
+++ b/src/libsystemd-bus/bus-socket.c
@@ -77,15 +77,8 @@ static void bus_message_setup_iovec(sd_bus_message *m) {
append_iovec(m, m->header, sizeof(*m->header));
- if (m->fields) {
- append_iovec(m, m->fields, m->header->fields_size);
-
- if (m->header->fields_size % 8 != 0) {
- static const uint8_t padding[7] = {};
-
- append_iovec(m, padding, 8 - (m->header->fields_size % 8));
- }
- }
+ if (m->fields)
+ append_iovec(m, m->fields, ALIGN8(m->header->fields_size));
if (m->body)
append_iovec(m, m->body, m->header->body_size);