]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2947] Gave up on agent update
authorFrancis Dupont <fdupont@isc.org>
Wed, 28 Jun 2023 17:41:08 +0000 (19:41 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 29 Jun 2023 13:45:26 +0000 (15:45 +0200)
src/lib/d2srv/d2_cfg_mgr.cc

index 5f93a977515f0df2ac1846da0555eaf609b10ec6..b928b515a7e3743673658b642144f9743d619de5 100644 (file)
@@ -309,7 +309,7 @@ D2CfgMgr::parse(isc::data::ConstElementPtr config_set, bool check_only) {
     } else {
 
         // Calculate hash of the configuration that was just set.
-        ElementPtr config = getContext()->toElement();
+        ConstElementPtr config = getContext()->toElement();
         std::string hash = BaseCommandMgr::getHash(config);
         ElementPtr params = Element::createMap();
         params->set("hash", Element::create(hash));