dhcpv4: fix DHCPv4 hostname handling
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 28 Dec 2016 09:57:30 +0000 (10:57 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 28 Dec 2016 22:53:32 +0000 (23:53 +0100)
commit700f5abbeff4e3dcc0f6b12d4883315e2cfb9b74
treec4c3bdc47b6ffe7d725d9fcfb51fd32ef6d22508
parent4c89614ccf5d72ee0c0824e5050a8814748a32c3
dhcpv4: fix DHCPv4 hostname handling

Fix hostname not being reported as "-" in the DHCP statefile in case
no hostname is reported by the DHCPv4 client
(https://:wqgithub.com/openwrt/odhcpd/issues/94)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv4.c
src/dhcpv4.h
src/dhcpv6-ia.c