Commit c56abc1d authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[3399] Kea config backend no longer silently ignores NULL configuration results

parent 6eb72206
......@@ -79,9 +79,10 @@ ControlledDhcpv4Srv::init(const std::string& file_name) {
// but as the configureDhcp4Server returns a pointer, it is theoretically
// possible that it will return NULL.
LOG_ERROR(dhcp4_logger, DHCP4_CONFIG_LOAD_FAIL)
.arg("Configuration failed: Undefined result of configureDhcp4Server"
"() function after attempting to read " + file_name);
return;
.arg("Configuration failed: Undefined result of processCommand("
"config-reload, " + file_name + ")");
isc_throw(BadValue, "Configuration failed: Undefined result of "
"processCommand('config-reload', " + file_name + ")");
}
// Now check is the returned result is successful (rcode=0) or not
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment