mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
[master] Ignore empty host name option when parsing v4 packets
Merges in rt43786
This commit is contained in:
@@ -202,6 +202,16 @@ int parse_option_buffer (options, buffer, length, universe)
|
||||
universe, NULL);
|
||||
}
|
||||
|
||||
if (universe == &dhcp_universe && code == DHO_HOST_NAME &&
|
||||
len == 0) {
|
||||
/* non-compliant clients can send it
|
||||
* we'll just drop it and go on */
|
||||
log_debug ("Ignoring empty DHO_HOST_NAME option");
|
||||
option_dereference(&option, MDL);
|
||||
offset += len;
|
||||
continue;
|
||||
}
|
||||
|
||||
op = lookup_option(universe, options, code);
|
||||
if (op == NULL) {
|
||||
/* If we don't have an option create one */
|
||||
|
Reference in New Issue
Block a user