core: add OOM check in config_parse_join_controllers
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 c6d2838..833fd74 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) {