summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-state-file.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-04-16 03:46:09 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-04-16 07:17:43 +0200
commite188243d1f8c8ccdc11ca8d46ef86dba76d1bf50 (patch)
treec18d6feb489b95ae47660cebe2b9c6c24d961365 /src/network/networkd-state-file.c
parentman: add missing drop-in directory (diff)
downloadsystemd-e188243d1f8c8ccdc11ca8d46ef86dba76d1bf50.tar.xz
systemd-e188243d1f8c8ccdc11ca8d46ef86dba76d1bf50.zip
network: fix use of wrong flag
Fixes a bug introduced by 86a66e9b95048b1a3a4e297ba2884afcedd1585e (v255).
Diffstat (limited to '')
-rw-r--r--src/network/networkd-state-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-state-file.c b/src/network/networkd-state-file.c
index 86746afc41..b1bbe13609 100644
--- a/src/network/networkd-state-file.c
+++ b/src/network/networkd-state-file.c
@@ -190,7 +190,7 @@ static int link_put_sip(Link *link, OrderedSet **s) {
assert(link->network);
assert(s);
- if (link->dhcp_lease && link->network->dhcp_use_ntp) {
+ if (link->dhcp_lease && link->network->dhcp_use_sip) {
const struct in_addr *addresses;
r = sd_dhcp_lease_get_sip(link->dhcp_lease, &addresses);