summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-lease.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-15 03:05:44 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-15 03:10:20 +0200
commit708281b81177f3a32d11770126727737a6a69483 (patch)
tree0631bfcba10b7a54a97b2e471e1acbd29f86785b /src/libsystemd-network/sd-dhcp-lease.c
parent4d229b318af339c7a4711f3812335cb3ae6fb5aa (diff)
dhcp: the localhost isn't valid as hostname either
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-lease.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c
index e8cfd72c01..6680d06736 100644
--- a/src/libsystemd-network/sd-dhcp-lease.c
+++ b/src/libsystemd-network/sd-dhcp-lease.c
@@ -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);