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:
3875c85
)
core: add OOM check in config_parse_join_controllers
author
Filipe Brandenburger
<filbranden@google.com>
Tue, 1 Sep 2015 15:31:34 +0000
(08:31 -0700)
committer
Filipe Brandenburger
<filbranden@google.com>
Tue, 1 Sep 2015 15:35:54 +0000
(08:35 -0700)
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index
c6d2838
..
833fd74
100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-561,6
+561,8
@@
static int config_parse_join_controllers(const char *unit,
break;
l = strv_split(word, ",");
+ if (!l)
+ log_oom();
strv_uniq(l);
if (strv_length(l) <= 1) {