policy: always check for hostname from DHCPv6 in update_system_hostname()

There is no reason for if-else-if. If DHCPv4 doesn't provide a hostname (but we
are doing DHCP), just check for DHCPv6.
This commit is contained in:
Thomas Haller 2017-09-06 13:21:39 +02:00
parent 9574472f9b
commit 8881c11f93

View file

@ -683,7 +683,9 @@ update_system_hostname (NMPolicy *self, NMDevice *best4, NMDevice *best6, const
dhcp_hostname);
}
}
} else if (best6) {
}
if (best6) {
NMDhcp6Config *dhcp6_config;
/* Grab a hostname out of the device's DHCP6 config */