summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcpd/options.c')
-rw-r--r--usr.sbin/dhcpd/options.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/options.c b/usr.sbin/dhcpd/options.c
index d98dfff221a..749b387f6a1 100644
--- a/usr.sbin/dhcpd/options.c
+++ b/usr.sbin/dhcpd/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.19 2007/10/29 16:51:02 krw Exp $ */
+/* $OpenBSD: options.c,v 1.20 2008/01/18 20:14:03 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -308,8 +308,8 @@ cons_options(struct packet *inpacket, struct dhcp_packet *outpacket,
buffer,
(main_buffer_size - 7 + ((overload & 1) ? DHCP_FILE_LEN : 0) +
((overload & 2) ? DHCP_SNAME_LEN : 0)),
- options, priority_list, main_buffer_size,
- (main_buffer_size + ((overload & 1) ? DHCP_FILE_LEN : 0)),
+ options, priority_list, main_buffer_size - 7,
+ (main_buffer_size - 7 + ((overload & 1) ? DHCP_FILE_LEN : 0)),
terminate);
/* Initialize the buffers to be used and put the cookie up front. */