summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/machine/machine.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c
index df8391c996..ef5c8551b5 100644
--- a/src/machine/machine.c
+++ b/src/machine/machine.c
@@ -323,11 +323,14 @@ int machine_load(Machine *m) {
int ifi;
r = extract_first_word(&p, &word, NULL, 0);
- if (r < 0)
- return log_error_errno(r, "Failed to parse NETIF: %s", netif);
-
if (r == 0)
break;
+ else if (r == -ENOMEM)
+ return log_oom();
+ else if (r < 0) {
+ log_warning_errno(r, "Failed to parse NETIF: %s", netif);
+ continue;
+ }
if (safe_atoi(word, &ifi) < 0)
continue;