dhcp: normalize DHCP host and domain names from leases
authorLennart Poettering <lennart@poettering.net>
Wed, 26 Aug 2015 18:12:17 +0000 (20:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 Aug 2015 18:45:29 +0000 (20:45 +0200)
commit909816257937b24e9c3c7fa669ea79b6ffc33c0f
treec17d254b72a8c69d6152a21afc560235880d03e6
parent2d03c0b803aa822dfb5f0473a1e37c19f7774860
dhcp: normalize DHCP host and domain names from leases

Previoulsy, we just checked whether the domain names specified in
incoming DHCP leases are valid. Given that validation code actually
internally normalizes anyway, it's a good idea to simply do the full
normalization and store that in the lease structure. This allows us to
remove the manual removal of a trailing dot, if there is one.
src/libsystemd-network/sd-dhcp-lease.c