]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: drop invalid assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 28 Apr 2019 07:06:13 +0000 (09:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 28 Apr 2019 17:54:50 +0000 (19:54 +0200)
The link may not have corresponding .network file.
Note that in that case, link_ipv4ll_enabled() and link_dhcp4_enabled()
returns false. So, it is safe to drop the assertion.

Fixes #12422.

src/network/networkd-link.c

index ec2190fd13c796d6f3b563f0f6551ed5b1102056..8d2711f1851c36113f76b11a443f5782571cf18e 100644 (file)
@@ -1854,7 +1854,6 @@ static int link_acquire_ipv4_conf(Link *link) {
         int r;
 
         assert(link);
-        assert(link->network);
         assert(link->manager);
         assert(link->manager->event);