diff options
author | 2012-06-26 14:36:11 +0000 | |
---|---|---|
committer | 2012-06-26 14:36:11 +0000 | |
commit | df453039eae19e9c7383e92106277de59b3db790 (patch) | |
tree | 1cccd18c1e36e3bb60abea27f5a08364c63120b1 /lib/libc | |
parent | initialize 'reason' variable before passing it to the pflog_packet; (diff) | |
download | wireguard-openbsd-df453039eae19e9c7383e92106277de59b3db790.tar.xz wireguard-openbsd-df453039eae19e9c7383e92106277de59b3db790.zip |
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."
So delete (all) trailing NUL's when parsing NVT ASCII options.
Should fix odd results when 'append'ing info to such options via
dhclient.conf.
FreeBSD commit to fix 'append' logic in a different way pointed out
by brad.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions