summaryrefslogtreecommitdiffstats
path: root/src/network/netdev/netdev-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/netdev/netdev-util.c')
-rw-r--r--src/network/netdev/netdev-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/netdev-util.c b/src/network/netdev/netdev-util.c
index 06028855a8..23506246ce 100644
--- a/src/network/netdev/netdev-util.c
+++ b/src/network/netdev/netdev-util.c
@@ -51,7 +51,7 @@ int link_get_local_address(
assert_not_reached();
}
- if (!IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED))
+ if (!link_is_ready_to_configure(link, /* allow_unmanaged = */ false))
return -EBUSY;
SET_FOREACH(a, link->addresses) {