mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
core: add OOM check in config_parse_join_controllers
This commit is contained in:
parent
3875c85bae
commit
1592ec21b3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user