diff options
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r-- | src/dhcpv4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 3386abb..2cc6278 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -1095,6 +1095,11 @@ static struct dhcpv4_assignment* dhcpv4_lease(struct interface *iface, if (a->hostname) { memcpy(a->hostname, hostname, hostname_len); a->hostname[hostname_len] = 0; + + if (odhcpd_valid_hostname(a->hostname)) + a->flags &= ~OAF_BROKEN_HOSTNAME; + else + a->flags |= OAF_BROKEN_HOSTNAME; } } |