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:
parent
9ab32f9daa
commit
638866cbea
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user