diff options
author | Filipe Brandenburger <filbranden@google.com> | 2015-09-01 08:31:34 -0700 |
---|---|---|
committer | Filipe Brandenburger <filbranden@google.com> | 2015-09-01 08:35:54 -0700 |
commit | 1592ec21b3c302c29e42d35e48159d1e3361f117 (patch) | |
tree | b5f31e5af3d402e74344359339eaf391386e3887 | |
parent | 3875c85bae4e9deab4005e156cd69eae2a5401cd (diff) |
core: add OOM check in config_parse_join_controllers
-rw-r--r-- | src/core/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c index c6d283896d..833fd74d87 100644 --- 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) { |