]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-state-file.c
network: fix use of wrong flag
[thirdparty/systemd.git] / src / network / networkd-state-file.c
index 86746afc41abbfae77f9ed0cd278d73043b049d5..b1bbe136097b8d8289596a7cbb7bf69d4e6b6f82 100644 (file)
@@ -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);