network: dhcp4: pass IPServiceType=none to dhcp client

Follow-up for b55093ce88.
This commit is contained in:
Yu Watanabe
2021-12-18 08:35:42 +09:00
parent b5c946d3b8
commit 14dd873b88
+1 -1
View File
@@ -1528,7 +1528,7 @@ static int dhcp4_configure(Link *link) {
return log_link_debug_errno(link, r, "DHCPv4 CLIENT: Failed to set max attempts: %m");
}
if (link->network->dhcp_ip_service_type > 0) {
if (link->network->dhcp_ip_service_type >= 0) {
r = sd_dhcp_client_set_service_type(link->dhcp_client, link->network->dhcp_ip_service_type);
if (r < 0)
return log_link_debug_errno(link, r, "DHCPv4 CLIENT: Failed to set IP service type: %m");