]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add OOM check in config_parse_join_controllers 1099/head
authorFilipe Brandenburger <filbranden@google.com>
Tue, 1 Sep 2015 15:31:34 +0000 (08:31 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Tue, 1 Sep 2015 15:35:54 +0000 (08:35 -0700)
src/core/main.c

index c6d283896d4fd099568899b131354f9a3fce6b3c..833fd74d872a78c40cefd4b4887148777ecd6e21 100644 (file)
@@ -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) {