From: krw Date: Sun, 22 Jul 2018 08:59:56 +0000 (+0000) Subject: Tweak comment about truncating NULs to reflect new X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=587003c7c697a7ed92974dbfbfbf8d9490f40ccd;p=openbsd Tweak comment about truncating NULs to reflect new reality. --- diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c index 9a6c245799a..25d4e6e96a1 100644 --- a/sbin/dhclient/options.c +++ b/sbin/dhclient/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.111 2018/07/22 08:43:01 krw Exp $ */ +/* $OpenBSD: options.c,v 1.112 2018/07/22 08:59:56 krw Exp $ */ /* DHCP options parsing and reassembly. */ @@ -447,8 +447,7 @@ parse_option_buffer(struct option_data *options, unsigned char *buffer, } /* - * Strip trailing NULs from ascii ('t') options. They - * will be treated as DHO_PAD options. i.e. ignored. RFC 2132 + * Strip trailing NULs from ascii ('t') 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."