chiark / gitweb /
bus: when reading a message from the socket, make sure to note down the size
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Apr 2013 01:23:27 +0000 (03:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Apr 2013 01:29:29 +0000 (03:29 +0200)
src/libsystemd-bus/bus-message.c

index c7cc32e..773a670 100644 (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)