]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Initialized more variables in D2ClientConfigParser::parse
authorFrancis Dupont <fdupont@isc.org>
Mon, 23 Jan 2017 13:49:01 +0000 (14:49 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 23 Jan 2017 13:49:01 +0000 (14:49 +0100)
src/lib/dhcpsrv/d2_client_cfg.h
src/lib/dhcpsrv/parsers/dhcp_parsers.cc

index b43327cd7f94cdd9ae7099651d0ee6841afcc582..82345e9d2cbb5a4954279077836c29f26fcda126 100644 (file)
@@ -254,7 +254,7 @@ private:
     /// @brief IP port on which the client should send
     size_t sender_port_;
 
-    /// @brief Maxium number of NCRs allowed to queue waiting to send
+    /// @brief Maximum number of NCRs allowed to queue waiting to send
     size_t max_queue_size_;
 
     /// @brief The socket protocol to use with kea-dhcp-ddns.
index 5cce39a0a02abf9dab5859257536ea88e3f8c4b6..19b24f828262249fbba3182166d1cbae1689cad6 100644 (file)
@@ -1315,17 +1315,18 @@ D2ClientConfigParser::parse(isc::data::ConstElementPtr client_config) {
     std::string qualifying_suffix;
     bool found_qualifying_suffix = false;
     IOAddress server_ip(0);
-    uint32_t server_port;
+    uint32_t server_port = 0;
     std::string sender_ip_str;
     uint32_t sender_port;
-    uint32_t max_queue_size;
+    uint32_t max_queue_size = 1024;
     dhcp_ddns::NameChangeProtocol ncr_protocol;
     dhcp_ddns::NameChangeFormat ncr_format;
-    bool always_include_fqdn;
+    bool always_include_fqdn = false;
     bool allow_client_update;
-    bool override_no_update;
-    bool override_client_update;
-    D2ClientConfig::ReplaceClientNameMode replace_client_name_mode;
+    bool override_no_update = false;
+    bool override_client_update = false;
+    D2ClientConfig::ReplaceClientNameMode replace_client_name_mode =
+        D2ClientConfig::ReplaceClientNameMode::RCM_NEVER;
     std::string generated_prefix;
 
     BOOST_FOREACH(ConfigPair param, client_config->mapValue()) {