network: always drop configs when corresponding network file does not exist

Follow-up for 93b4dab57e.

Fixes #11724.
This commit is contained in:
Yu Watanabe
2019-02-18 06:11:50 +09:00
parent 4bb91a950a
commit 25e992ba23
+1 -1
View File
@@ -3565,7 +3565,7 @@ static int link_carrier_lost(Link *link) {
assert(link);
if (link->network->ignore_carrier_loss)
if (link->network && link->network->ignore_carrier_loss)
return 0;
/* Some devices reset itself while setting the MTU. This causes the DHCP client fall into a loop.