diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2021-01-24 16:04:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 16:04:47 +0100 |
commit | 661f554b9e08a3721227f1e4a4fe6fd74e43a1f4 (patch) | |
tree | 16caa4dab3e052ba563212b4f8ef4bdf4af7b5fc /src/server/authserver/Server/AuthSession.h | |
parent | 62320b1efab3a050cf2187490b59234a037c69c8 (diff) |
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"
Diffstat (limited to 'src/server/authserver/Server/AuthSession.h')
-rw-r--r-- | src/server/authserver/Server/AuthSession.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<Trinity::Crypto::SRP6> _srp6; - SessionKey _sessionKey; - std::array<uint8, 16> _reconnectProof; + SessionKey _sessionKey = {}; + std::array<uint8, 16> _reconnectProof = {}; AuthStatus _status; AccountInfo _accountInfo; |