]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4074] fixed uninitialized value in Option4ClientFqdnImpl
authorRazvan Becheriu <razvan@isc.org>
Wed, 17 Sep 2025 19:50:09 +0000 (22:50 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 19 Sep 2025 08:07:19 +0000 (08:07 +0000)
src/lib/dhcp/option4_client_fqdn.cc

index cc463dfe9fb2db4f0169cd530905aa2a998b6144..19349dc09a909cfdf98e5092a7c5cf9269299731 100644 (file)
@@ -143,7 +143,8 @@ Option4ClientFqdnImpl(const uint8_t flags,
 Option4ClientFqdnImpl::Option4ClientFqdnImpl(OptionBufferConstIter first,
                                              OptionBufferConstIter last)
     : rcode1_(Option4ClientFqdn::RCODE_CLIENT()),
-      rcode2_(Option4ClientFqdn::RCODE_CLIENT()) {
+      rcode2_(Option4ClientFqdn::RCODE_CLIENT()),
+      domain_name_type_(Option4ClientFqdn::PARTIAL) {
     parseWireData(first, last);
     // Verify that flags value was correct. This constructor is used to parse
     // incoming packet, so don't check MBZ bits. They are ignored because we