diff options
author | 2007-10-19 15:34:55 +0000 | |
---|---|---|
committer | 2007-10-19 15:34:55 +0000 | |
commit | 7f3af9207f604fd2f33dd568dc7424656685e052 (patch) | |
tree | 24c8b3e0ced8f2b2364844e00ae848de0b48f85c | |
parent | fix audio_calc_blksize() not to return larger block sizes than (diff) | |
download | wireguard-openbsd-7f3af9207f604fd2f33dd568dc7424656685e052.tar.xz wireguard-openbsd-7f3af9207f604fd2f33dd568dc7424656685e052.zip |
Fix obvious typos and write DHO_PAD and DHO_END into correct options overflow
buffer. Spotted by canacar@ and others.
ok beck@
-rw-r--r-- | usr.sbin/dhcpd/options.c | 6 |
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); |