summaryrefslogtreecommitdiff
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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/dhcpd/options.c b/usr.sbin/dhcpd/options.c
index 10dc064d996..4f008fb3cae 100644
--- a/usr.sbin/dhcpd/options.c
+++ b/usr.sbin/dhcpd/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.24 2008/11/14 02:00:08 krw Exp $ */
+/* $OpenBSD: options.c,v 1.25 2010/01/01 20:46:20 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -187,8 +187,7 @@ parse_option_buffer(struct packet *packet,
&s[2], len);
packet->options[code].len += len;
t[packet->options[code].len] = 0;
- dfree(packet->options[code].data,
- "parse_option_buffer");
+ free(packet->options[code].data);
packet->options[code].data = t;
}
s += len + 2;
@@ -518,5 +517,5 @@ do_packet(struct interface_info *interface, struct dhcp_packet *packet,
/* Free the data associated with the options. */
for (i = 0; i < 256; i++)
if (tp.options[i].len && tp.options[i].data)
- dfree(tp.options[i].data, "do_packet");
+ free(tp.options[i].data);
}