]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3770] Fix option client-classes buffer size
authorThomas Markwalder <tmark@isc.org>
Tue, 22 Jul 2025 13:59:27 +0000 (09:59 -0400)
committerThomas Markwalder <tmark@isc.org>
Tue, 22 Jul 2025 13:59:27 +0000 (09:59 -0400)
modified:   src/hooks/dhcp/mysql/mysql_host_data_source.cc

src/hooks/dhcp/mysql/mysql_host_data_source.cc

index 6644671d73579145c6a3d7f512bee8bb222ad45a..93684d53e7be96ae698e25a926a24db41131c1ac 100644 (file)
@@ -24,6 +24,7 @@
 #include <util/buffer.h>
 #include <util/multi_threading_mgr.h>
 #include <util/optional.h>
+#include <config_backend/constants.h>
 
 #include <boost/algorithm/string/split.hpp>
 #include <boost/algorithm/string/classification.hpp>
@@ -1234,7 +1235,7 @@ private:
         unsigned long user_context_length_;
 
         /// @brief Buffer holding textual client classes of an option.
-        char client_classes_[CLIENT_CLASSES_MAX_LEN];
+        char client_classes_[cb::CLIENT_CLASS_LIST_BUF_LENGTH];
 
         /// @brief User context length.
         unsigned long client_classes_length_;