From: Yu Watanabe Date: Sat, 16 Feb 2019 18:57:13 +0000 (+0900) Subject: network: always drop configs when corresponding network file does not exist X-Git-Tag: v242-rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e992ba23fc2f0a6480434aa1bd060404833fe0;p=thirdparty%2Fsystemd.git network: always drop configs when corresponding network file does not exist Follow-up for 93b4dab57e2e13bd804cbee999241be65a443e2e. Fixes #11724. --- diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index ae3b8cc27fc..64ebcf41e39 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -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.