diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-07-16 16:31:06 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-07-16 16:31:06 +0000 |
commit | e17a650b7d411420bfdb41a9aa9e00de8269da6d (patch) | |
tree | 00ac4eb470d0a7311a1bd1cb02f39f74014031c4 /sbin | |
parent | a87b612a23b1c095de7c2b5147a20df141183b36 (diff) |
back out last; breaks in cases where we want hex and the last byte is 0
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/options.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c index 18e77264e8b..e31ed2289ce 100644 --- a/sbin/dhclient/options.c +++ b/sbin/dhclient/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.23 2005/07/15 10:40:27 henning Exp $ */ +/* $OpenBSD: options.c,v 1.24 2005/07/16 16:31:05 henning Exp $ */ /* DHCP options parsing and reassembly. */ @@ -279,11 +279,7 @@ pretty_print_option(unsigned int code, unsigned char *data, int len, if (!isascii(data[k]) || !isprint(data[k])) break; - /* If we found no bogus characters, or the bogus - character we found is a trailing NUL, it's - okay to print this option as text. */ - - if (k == len || (k + 1 == len && data [k] == 0)) { + if (k == len) { fmtbuf[i] = 't'; numhunk = -2; } else { |