even valid values to fail as invalid on some environments.
[ISC-Bugs #46535]
+- Added to code ignore empty IPv4 host name option (code 12). While RFC 2132
+ states the option cannot be empty, some clients are apparently capable of
+ sending it. Prior to this the server was attempting to use it and store it
+ in the lease file causing issues with DDNS and so forth.
+ [ISC-bugs #43786]
+
Changes since 4.1-ESV-R15b1
- None
return 0;
}
+ 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);
+ }
+
/* If the option contains an encapsulation, parse it. If
the parse fails, or the option isn't an encapsulation (by
far the most common case), or the option isn't entirely