dhclient - Delete trailing NUL's when parsing NVT ASCII options.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 14 Aug 2012 22:54:02 +0000 (00:54 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 15 Aug 2012 01:22:20 +0000 (03:22 +0200)
commit815907baae517ad3cfcbe59163cca9bdd4b56e01
tree24a385669ba417585db6bacf0b4f457595986a41
parent71edb682e79109102030ae26a5d207cc6a6384c5
dhclient - Delete trailing NUL's when parsing NVT ASCII options.

- RFC 2132 says "Options containing NVT ASCII data SHOULD NOT include
  a trailing NULL; however, the receiver of such options MUST be
  prepared to delete trailing nulls if they exist."
- Should fix odd results when 'append'ing info to such options via
  dhclient.conf.

Taken-from: OpenBSD
sbin/dhclient/options.c