]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4061] Missing init (CID 1662650)
authorFrancis Dupont <fdupont@isc.org>
Fri, 28 Nov 2025 10:48:01 +0000 (11:48 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 9 Dec 2025 22:25:41 +0000 (23:25 +0100)
src/hooks/dhcp/radius/client_message.cc

index 3e1306987c864f63bc1ce05ab76e8fe3a911e0de..6750ae6a79a76eb6c554d60f730e556f50037d57 100644 (file)
@@ -63,12 +63,13 @@ msgCodeToText(const uint8_t code) {
 Message::Message(const uint8_t code, uint16_t length,
                  const vector<uint8_t>& auth, const string& secret,
                  const AttributesPtr& attributes)
-    : code_(code), length_(length), auth_(auth), secret_(secret),
-      attributes_(attributes), buffer_() {
+    : code_(code), identifier_(0), length_(length), auth_(auth),
+      secret_(secret), attributes_(attributes), buffer_() {
 }
 
 Message::Message(const Message& other)
     : code_(other.code_),
+      identifier_(other.identifier_),
       length_(other.length_),
       auth_(other.auth_),
       secret_(other.secret_),
@@ -86,8 +87,8 @@ Message::Message(const Message& other)
 Message::Message(const vector<uint8_t>& buffer,
                  const vector<uint8_t>& auth,
                  const string& secret)
-    : code_(0), length_(0), auth_(auth), secret_(secret), attributes_(),
-      buffer_(buffer) {
+    : code_(0), identifier_(0), length_(0), auth_(auth), secret_(secret),
+      attributes_(), buffer_(buffer) {
 }
 
 Message::~Message() {