summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-01 03:23:27 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-01 03:29:29 +0200
commit638866cbea2d95b3f65f3abc4ada240a94e64c3a (patch)
tree62a2d2a56269e2321612e2018beb5d93484536b6 /src/libsystemd-bus
parent9ab32f9daa9601250f183a694586712654be2ffe (diff)
bus: when reading a message from the socket, make sure to note down the size
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/bus-message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index c7cc32ec15..773a670119 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -302,6 +302,7 @@ int bus_message_from_malloc(
m->n_iovec = 1;
m->iovec[0].iov_base = buffer;
m->iovec[0].iov_len = length;
+ m->size = length;
r = message_parse_fields(m);
if (r < 0)