diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index d4263de662..0c7a0f5e1d 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7441,7 +7441,7 @@ nm_device_spawn_iface_helper (NMDevice *self) } hostname = nm_dhcp_client_get_hostname (priv->dhcp4_client); - if (client_id) { + if (hostname) { g_ptr_array_add (argv, g_strdup ("--dhcp4-hostname")); g_ptr_array_add (argv, g_strdup (hostname)); }