1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 11:55:23 +03:00

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:42:23 +02:00
parent bbc0c09448
commit a9dd908d09

View File

@ -200,8 +200,10 @@ int config_parse_ifnames(
_cleanup_free_ char *word = NULL; _cleanup_free_ char *word = NULL;
r = extract_first_word(&rvalue, &word, NULL, 0); r = extract_first_word(&rvalue, &word, NULL, 0);
if (r < 0) if (r < 0) {
return r; log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse interface name list: %s", rvalue);
return 0;
}
if (r == 0) if (r == 0)
break; break;