mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-15 18:25:53 +00:00
journald: add missing error check
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b76652a28e
commit
6fcec98acd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user