artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af84d9c
)
When finished pulling an option out of a buffer, skip directly to the
author
krw
<krw@openbsd.org>
Sun, 22 Jul 2018 08:43:01 +0000
(08:43 +0000)
committer
krw
<krw@openbsd.org>
Sun, 22 Jul 2018 08:43:01 +0000
(08:43 +0000)
next option. Don't rely on truncated NULs being ignored because
NUL == DHO_PAD.
ok tb@
sbin/dhclient/options.c
patch
|
blob
|
history
diff --git
a/sbin/dhclient/options.c
b/sbin/dhclient/options.c
index
5753fd0
..
9a6c245
100644
(file)
--- a/
sbin/dhclient/options.c
+++ b/
sbin/dhclient/options.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: options.c,v 1.11
0 2018/07/21 15:24:55
krw Exp $ */
+/* $OpenBSD: options.c,v 1.11
1 2018/07/22 08:43:01
krw Exp $ */
/* DHCP options parsing and reassembly. */
@@
-489,7
+489,7
@@
parse_option_buffer(struct option_data *options, unsigned char *buffer,
free(options[code].data);
options[code].data = t;
}
- s +=
len
+ 2;
+ s +=
s[1]
+ 2;
}
return 1;