From: Francis Dupont Date: Fri, 28 Nov 2025 10:48:01 +0000 (+0100) Subject: [#4061] Missing init (CID 1662650) X-Git-Tag: Kea-3.1.5~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa02225df560fcb8d08dbda2e4f1d2ac451d3def;p=thirdparty%2Fkea.git [#4061] Missing init (CID 1662650) --- diff --git a/src/hooks/dhcp/radius/client_message.cc b/src/hooks/dhcp/radius/client_message.cc index 3e1306987c..6750ae6a79 100644 --- a/src/hooks/dhcp/radius/client_message.cc +++ b/src/hooks/dhcp/radius/client_message.cc @@ -63,12 +63,13 @@ msgCodeToText(const uint8_t code) { Message::Message(const uint8_t code, uint16_t length, const vector& 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& buffer, const vector& 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() {