projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6cd93
)
network: drop invalid assertion
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 28 Apr 2019 07:06:13 +0000
(09:06 +0200)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/network/networkd-link.c
b/src/network/networkd-link.c
index ec2190fd13c796d6f3b563f0f6551ed5b1102056..8d2711f1851c36113f76b11a443f5782571cf18e 100644
(file)
--- a/
src/network/networkd-link.c
+++ b/
src/network/networkd-link.c
@@
-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);