chiark / gitweb /
bus: fix rewinding in gvariant messages
[elogind.git] / src / libsystemd-bus / bus-message.c
index 35a46786009881d336550a60e20ac766979d82c2..55fb47b5524a475749e9d6d31b5e5321bd060dc3 100644 (file)
@@ -4150,6 +4150,9 @@ _public_ int sd_bus_message_rewind(sd_bus_message *m, int complete) {
                 m->rindex = c->begin;
         }
 
+        c->offset_index = 0;
+        c->item_size = c->n_offsets > 0 ? c->offsets[0] : c->end;
+
         return !isempty(c->signature);
 }