summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2006f82a53f..5ee70b04b51 100644
--- a/usr.sbin/dhcpd/options.c
+++ b/usr.sbin/dhcpd/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.9 2007/10/09 03:17:34 krw Exp $ */
+/* $OpenBSD: options.c,v 1.10 2007/10/19 15:16:34 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -238,8 +238,8 @@ cons_options(struct packet *inpacket, struct dhcp_packet *outpacket,
else
main_buffer_size = 576 - DHCP_FIXED_LEN;
- if (main_buffer_size > sizeof(buffer))
- main_buffer_size = sizeof(buffer);
+ if (main_buffer_size > sizeof(outpacket->options))
+ main_buffer_size = sizeof(outpacket->options);
/* Preload the option priority list with mandatory options. */
priority_len = 0;