network: always drop configs when corresponding network file does not exist
Follow-up for 93b4dab57e.
Fixes #11724.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user