]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3399] Kea config backend no longer silently ignores NULL configuration results
authorTomek Mrugalski <tomasz@isc.org>
Fri, 30 May 2014 12:39:52 +0000 (14:39 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 30 May 2014 12:39:52 +0000 (14:39 +0200)
src/bin/dhcp4/kea_controller.cc

index 3984fd2894c8b68b00888e224295a1bb39ebe39c..a8d43e836252152fe9509e079044e975dcbe6693 100644 (file)
@@ -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