summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-10-19 15:34:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-10-19 15:34:56 +0000
commit5a8fe992e3c04628531ef979727848d92899ba00 (patch)
tree3dfa799f9e6e8aa28a4fbdabdd28d18ecb2e84ff /usr.sbin/dhcpd
parent93a9da244eb6b22328860a761ffdf9e83cfed40b (diff)
Fix obvious typos and write DHO_PAD and DHO_END into correct options overflow
buffer. Spotted by canacar@ and others. ok beck@
Diffstat (limited to 'usr.sbin/dhcpd')
-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 b8c16676655..6ef4d8642a7 100644
--- a/usr.sbin/dhcpd/options.c
+++ b/usr.sbin/dhcpd/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.11 2007/10/19 15:25:07 krw Exp $ */
+/* $OpenBSD: options.c,v 1.12 2007/10/19 15:34:55 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -338,9 +338,9 @@ cons_options(struct packet *inpacket, struct dhcp_packet *outpacket,
mainbufix = option_size - bufix;
if (mainbufix < DHCP_SNAME_LEN)
- outpacket->file[mainbufix++] = (char)DHO_END;
+ outpacket->sname[mainbufix++] = (char)DHO_END;
while (mainbufix < DHCP_SNAME_LEN)
- outpacket->file[mainbufix++] = DHO_PAD;
+ outpacket->sname[mainbufix++] = DHO_PAD;
}
}
return (length);