machine: when we fail to extract a network interface from the machine state, don't try again

If we failed to extract a word, then that's how it is, we shouldn't try
to extract it again and again, it's unlikely to work, and we just
deadlock.

This is a fix-up for 52278ad31d.
This commit is contained in:
Lennart Poettering 2015-11-02 23:47:38 +01:00
parent 5768d25949
commit 6a37c68469

View file

@ -325,11 +325,11 @@ int machine_load(Machine *m) {
r = extract_first_word(&p, &word, NULL, 0);
if (r == 0)
break;
else if (r == -ENOMEM)
if (r == -ENOMEM)
return log_oom();
else if (r < 0) {
if (r < 0) {
log_warning_errno(r, "Failed to parse NETIF: %s", netif);
continue;
break;
}
if (safe_atoi(word, &ifi) < 0)