forked from pool/systemd
26 lines
792 B
Diff
26 lines
792 B
Diff
|
From 8c92d4bbc7a538ada11d7e85016cce141beb0e6c Mon Sep 17 00:00:00 2001
|
||
|
From: Lennart Poettering <lennart@poettering.net>
|
||
|
Date: Wed, 2 Oct 2013 19:36:43 +0200
|
||
|
Subject: [PATCH 06/15] journald: add missing error check
|
||
|
|
||
|
---
|
||
|
src/journal/journal-file.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
|
||
|
index 1236403..81c344f 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);
|
||
|
--
|
||
|
1.8.4
|
||
|
|