]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4205] fixed invalid memory access
authorRazvan Becheriu <razvan@isc.org>
Sat, 1 Nov 2025 13:14:01 +0000 (15:14 +0200)
committerRazvan Becheriu <razvan@isc.org>
Sat, 1 Nov 2025 13:14:01 +0000 (15:14 +0200)
src/hooks/dhcp/subnet_cmds/subnet_cmds.cc

index 1b7bec8680fbd959251f4fc15624e679f7989dfb..f50ed9d8e61377c814c3244aed6ffd2810792bc2 100644 (file)
@@ -161,8 +161,8 @@ public:
         /// @brief function which returns true if the pair of option elements
         /// refer to the same option in the configuration.
         auto const& option_match = [&](ElementPtr& left, ElementPtr& right) -> bool {
-            std::string left_space = space;
-            std::string right_space = space;
+            std::string left_space = space_;
+            std::string right_space = space_;
             if (left->get("space")) {
                 left_space = left->get("space")->stringValue();
             }