summaryrefslogtreecommitdiff
path: root/src/journal-remote/journal-remote-parse.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-02 10:34:51 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-02 10:40:01 -0500
commit09d801a82a46df518dd752e40bf13ac404daa2ce (patch)
tree47691b173f5ce1a63e77b8870eb0ee4591330c49 /src/journal-remote/journal-remote-parse.h
parent0289f2fb2a64df53b589b771f69c43126b029590 (diff)
journal-remote: fix saving of binary fields
Binary fields were not processed properly, and resulting journal files were non-conforming, resulting in an error ("Invalid field.") when reading. https://bugs.freedesktop.org/show_bug.cgi?id=89391
Diffstat (limited to 'src/journal-remote/journal-remote-parse.h')
-rw-r--r--src/journal-remote/journal-remote-parse.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-parse.h b/src/journal-remote/journal-remote-parse.h
index 8499f4eb82..22db550913 100644
--- a/src/journal-remote/journal-remote-parse.h
+++ b/src/journal-remote/journal-remote-parse.h
@@ -42,7 +42,9 @@ typedef struct RemoteSource {
size_t offset; /* offset to the beginning of live data in the buffer */
size_t scanned; /* number of bytes since the beginning of data without a newline */
size_t filled; /* total number of bytes in the buffer */
- size_t data_size; /* size of the binary data chunk being processed */
+
+ size_t field_len; /* used for binary fields: the field name length */
+ size_t data_size; /* and the size of the binary data chunk being processed */
struct iovec_wrapper iovw;