diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-02 19:36:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-02 19:45:12 +0200 |
commit | 8c92d4bbc7a538ada11d7e85016cce141beb0e6c (patch) | |
tree | c5d771ac609b8e8f691159084e56003ac007bb82 /src | |
parent | 4b93637fd7dddb0a1518f35171998b2c7cd5c5bd (diff) |
journald: add missing error check
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journal-file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 12364030d9..81c344fe5a 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -907,6 +907,8 @@ static int journal_file_append_field( osize = offsetof(Object, field.payload) + size; r = journal_file_append_object(f, OBJECT_FIELD, osize, &o, &p); + if (r < 0) + return r; o->field.hash = htole64(hash); memcpy(o->field.payload, field, size); |