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>
Sun, 19 Aug 2012 14:30:57 +0000 (16:30 +0200)
commitf568cd1e4b2b81c7ff0fbd231348721286d6c3ce
tree18e8aa177967d91ee63b2dee3275eb40bf44f995
parent80d26e4806f1a40969bd60f4cac0aba9c29f3886
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