summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-09 15:42:23 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-09 15:45:31 +0200
commita9dd908d093e76f5c19829b6aadd0868bb663c9e (patch)
treec429f8061d4cb14899bed9de390c492ee662835e
parentbbc0c09448668bc2b0687cd13f172cda1a9b8131 (diff)
network: Make sure we log about parse errors for ifname lists
Fix-up for 93e2822684b37a4eeef03775a7a1f44a3055d7b2
-rw-r--r--src/libsystemd-network/network-internal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
index 929f066fa0..2badcdff58 100644
--- a/src/libsystemd-network/network-internal.c
+++ b/src/libsystemd-network/network-internal.c
@@ -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;