projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201be42
)
tmpfiles: add missing OOM check
author
Lennart Poettering
<lennart@poettering.net>
Mon, 22 Jan 2018 14:32:57 +0000
(15:32 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 22 Jan 2018 14:32:57 +0000
(15:32 +0100)
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index
f96f400
..
d4a606f
100644
(file)
--- a/
src/tmpfiles/tmpfiles.c
+++ b/
src/tmpfiles/tmpfiles.c
@@
-2261,6
+2261,9
@@
static int parse_line(const char *fname, unsigned line, const char *buffer, bool
}
} else {
existing = new0(ItemArray, 1);
+ if (!existing)
+ return log_oom();
+
r = ordered_hashmap_put(h, i.path, existing);
if (r < 0)
return log_oom();