Skip to content

Commit 6450ee3

Browse files
authored
Merge pull request systemd#12466 from yuwata/network-fix-issue-12452
network: fix assertion when link get carrier
2 parents b6adba1 + b9ea3d2 commit 6450ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network/networkd-link.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,7 +3734,7 @@ int link_ipv6ll_gained(Link *link, const struct in6_addr *address) {
37343734
link->ipv6ll_address = *address;
37353735
link_check_ready(link);
37363736

3737-
if (!IN_SET(link->state, LINK_STATE_PENDING, LINK_STATE_UNMANAGED, LINK_STATE_FAILED)) {
3737+
if (IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED)) {
37383738
r = link_acquire_ipv6_conf(link);
37393739
if (r < 0) {
37403740
link_enter_failed(link);
@@ -3750,7 +3750,7 @@ static int link_carrier_gained(Link *link) {
37503750

37513751
assert(link);
37523752

3753-
if (!IN_SET(link->state, LINK_STATE_PENDING, LINK_STATE_UNMANAGED, LINK_STATE_FAILED)) {
3753+
if (IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED)) {
37543754
r = link_acquire_conf(link);
37553755
if (r < 0) {
37563756
link_enter_failed(link);

0 commit comments

Comments
 (0)