]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3919] Added some missing initializations
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 11:41:20 +0000 (13:41 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 11:41:20 +0000 (13:41 +0200)
src/lib/dhcpsrv/mysql_lease_mgr.cc

index 63a4cb39725762e382ccef263fa9deb9478e7a56..1296efc0cfc319489024fd4e00a6f1fc8573998d 100644 (file)
@@ -308,6 +308,7 @@ public:
     /// all variables are initialized/set in the methods before they are used.
     MySqlLease4Exchange() : addr4_(0), hwaddr_length_(0), client_id_length_(0),
                             client_id_null_(MLM_FALSE),
+                            subnet_id_(0), valid_lifetime_(0),
                             fqdn_fwd_(false), fqdn_rev_(false), hostname_length_(0) {
         memset(hwaddr_buffer_, 0, sizeof(hwaddr_buffer_));
         memset(client_id_buffer_, 0, sizeof(client_id_buffer_));
@@ -666,6 +667,8 @@ public:
     /// The initialization of the variables here is nonly to satisfy cppcheck -
     /// all variables are initialized/set in the methods before they are used.
     MySqlLease6Exchange() : addr6_length_(0), duid_length_(0),
+                            iaid_(0), lease_(0), lease_type_(0), prefixlen_(0),
+                            pref_lifetime_(0), subnet_id_(0), valid_lifetime_(0),
                             fqdn_fwd_(false), fqdn_rev_(false),
                             hostname_length_(0), hwaddr_length_(0),
                             hwaddr_null_(MLM_FALSE), hwtype_(0), hwaddr_source_(0) {