1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

dhcp: the localhost isn't valid as hostname either

This commit is contained in:
Lennart Poettering 2014-08-15 03:05:44 +02:00
parent 4d229b318a
commit 708281b811

View File

@ -537,7 +537,7 @@ int dhcp_lease_parse_options(uint8_t code, uint8_t len, const uint8_t *option,
if (r < 0)
return r;
if (!hostname_is_valid(hostname))
if (!hostname_is_valid(hostname) || is_localhost(hostname))
break;
free(lease->hostname);