According to RFC 2132, 2. BOOTP Extension/DHCP Option Field Format
authorflorian <florian@openbsd.org>
Wed, 16 Feb 2022 10:35:57 +0000 (10:35 +0000)
committerflorian <florian@openbsd.org>
Wed, 16 Feb 2022 10:35:57 +0000 (10:35 +0000)
commit945a7acc30d793ea0685fb91b4c18532f9b1d15b
tree4f986eca4b7e55e53edae3f9b8baa18ef6853636
parent308aaa404019ba82df3af9e8a13d726fb603ecb2
According to RFC 2132, 2. BOOTP Extension/DHCP Option Field Format
ASCII data should not include trailing NUL but we MUST delete trailing
NULs on receiving.

Jan Vlach ( janus AT volny.cz) reported that Microsoft DHCP server
sends the domain name option with a trailing NUL which the installer
put into /etc/myname as a trailing ^@ which smtpd does not like.

Fix some whitespace while here.

Input & OK millert
sbin/dhcpleased/engine.c