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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user