diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-01 03:23:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-01 03:29:29 +0200 |
commit | 638866cbea2d95b3f65f3abc4ada240a94e64c3a (patch) | |
tree | 62a2d2a56269e2321612e2018beb5d93484536b6 /src/libsystemd-bus/bus-message.c | |
parent | 9ab32f9daa9601250f183a694586712654be2ffe (diff) |
bus: when reading a message from the socket, make sure to note down the size
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r-- | src/libsystemd-bus/bus-message.c | 1 |
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) |