From 661f554b9e08a3721227f1e4a4fe6fd74e43a1f4 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Sun, 24 Jan 2021 16:04:47 +0100 Subject: Core/Misc: Fix static analysis issues (#25924) * Core/Misc: Fix static analysis issues * Fix infinite loop in ".debug send opcode" Fix using uninitialized memory in ".debug send opcode" --- src/server/authserver/Server/AuthSession.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/authserver/Server/AuthSession.h') diff --git a/src/server/authserver/Server/AuthSession.h b/src/server/authserver/Server/AuthSession.h index cd757371421..71af8272501 100644 --- a/src/server/authserver/Server/AuthSession.h +++ b/src/server/authserver/Server/AuthSession.h @@ -92,8 +92,8 @@ private: bool VerifyVersion(uint8 const* a, int32 aLength, Trinity::Crypto::SHA1::Digest const& versionProof, bool isReconnect); Optional _srp6; - SessionKey _sessionKey; - std::array _reconnectProof; + SessionKey _sessionKey = {}; + std::array _reconnectProof = {}; AuthStatus _status; AccountInfo _accountInfo; -- cgit v1.2.3