1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

bus: when reading a message from the socket, make sure to note down the size

This commit is contained in:
Lennart Poettering 2013-04-01 03:23:27 +02:00
parent 9ab32f9daa
commit 638866cbea

View File

@ -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)