network: Make sure we log about parse errors for ifname lists

Fix-up for 93e2822684
This commit is contained in:
Lennart Poettering
2016-05-09 15:45:31 +02:00
parent bbc0c09448
commit a9dd908d09
+4 -2
View File
@@ -200,8 +200,10 @@ int config_parse_ifnames(
_cleanup_free_ char *word = NULL;
r = extract_first_word(&rvalue, &word, NULL, 0);
if (r < 0)
return r;
if (r < 0) {
log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse interface name list: %s", rvalue);
return 0;
}
if (r == 0)
break;