From 02ba514f0a260de7b8de7131546fac0468e7daac Mon Sep 17 00:00:00 2001 From: r0m1ntik <40755539+r0m1ntik@users.noreply.github.com> Date: Sat, 16 Apr 2022 22:44:15 +0200 Subject: [PATCH] fix(Core/Auth): Fix uninitialized variable, fixes changing realms aFter logging in to world (#11415) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * …ter logging in to world * upd Co-authored-by: Badanin Roman Co-Authored-By: Shauren --- src/server/authserver/Server/AuthSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index 294008648..ca411fa29 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -847,8 +847,8 @@ bool AuthSession::VerifyVersion(uint8 const* a, int32 aLength, Acore::Crypto::SH if (!sConfigMgr->GetOption("StrictVersionCheck", false)) return true; - Acore::Crypto::SHA1::Digest zeros; - Acore::Crypto::SHA1::Digest const* versionHash = nullptr; + Acore::Crypto::SHA1::Digest zeros{}; + Acore::Crypto::SHA1::Digest const* versionHash{ nullptr }; if (!isReconnect) {