summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index c31b47667b..7a6113642b 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -7602,7 +7602,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));
}