if (extref->start_offset != last_voffset) {
uoff_t part_size = extref->start_offset - last_voffset;
- input = i_stream_create_limit(*stream, part_size);
- array_append(&streams, &input, 1);
- i_stream_seek(*stream, (*stream)->v_offset + part_size);
if ((*stream)->v_offset + part_size > psize) {
*error_r = t_strdup_printf(
"ext-refs point outside message "
(*stream)->v_offset, part_size, psize);
ret = 0;
}
+
+ input = i_stream_create_limit(*stream, part_size);
+ array_append(&streams, &input, 1);
+ i_stream_seek(*stream, (*stream)->v_offset + part_size);
last_voffset += part_size;
}