summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-08-22 20:30:53 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-08-22 20:30:53 +0000
commitc766fc8f1f86fe54c00dd7cfcecd9f7c85235376 (patch)
tree93c7acf1bdc48457c11b8f4c365279107f747380 /sbin
parent9898edf55a357cec37e2b881a1eb6aeef0e034ab (diff)
Fix problems with some Linksys DHCP servers (and probably others) by
not accidentally inserting two NULL characters after each option in the DHCPREQUEST packet. Thanks to Christian Jones for the problem report and tcpdump's, and to Emmett Pate for finding a problematic Linksys model still in my local stores. ok deraadt@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c
index e31ed2289ce..eff67b1bfe3 100644
--- a/sbin/dhclient/options.c
+++ b/sbin/dhclient/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.24 2005/07/16 16:31:05 henning Exp $ */
+/* $OpenBSD: options.c,v 1.25 2005/08/22 20:30:52 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -222,7 +222,7 @@ cons_options(unsigned char *buf, const int buflen, struct option_data *options)
length -= incr;
ix += incr;
- bufix += 2 + incr;
+ bufix += incr;
}
}