572a44
From dc74e25f66f2aa56b6c6fa2fd51fd1ee02a4b770 Mon Sep 17 00:00:00 2001
a4b143
From: Lennart Poettering <lennart@poettering.net>
a4b143
Date: Wed, 2 Oct 2013 19:36:43 +0200
a4b143
Subject: [PATCH] journald: add missing error check
a4b143
a4b143
---
a4b143
 src/journal/journal-file.c | 2 ++
a4b143
 1 file changed, 2 insertions(+)
a4b143
a4b143
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
a4b143
index 1236403..81c344f 100644
a4b143
--- a/src/journal/journal-file.c
a4b143
+++ b/src/journal/journal-file.c
a4b143
@@ -907,6 +907,8 @@ static int journal_file_append_field(
a4b143
 
a4b143
         osize = offsetof(Object, field.payload) + size;
a4b143
         r = journal_file_append_object(f, OBJECT_FIELD, osize, &o, &p);
a4b143
+        if (r < 0)
a4b143
+                return r;
a4b143
 
a4b143
         o->field.hash = htole64(hash);
a4b143
         memcpy(o->field.payload, field, size);