2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Ensure that bootp packets are at least BOOTP_MIN_LEN bytes long

This commit is contained in:
Ted Lemon
1996-06-24 20:28:29 +00:00
parent 76e0941dc4
commit ba1f12de85
2 changed files with 4 additions and 2 deletions

View File

@@ -190,7 +190,8 @@ void bootp (packet)
pack options into the filename and server name buffers. */
cons_options (packet, &outgoing, options, 0);
if (outgoing.packet_length < BOOTP_MIN_LEN)
outgoing.packet_length = BOOTP_MIN_LEN;
/* Take the fields that we care about... */
raw.op = BOOTREPLY;