fix(Core/Auth): Fix uninitialized variable, fixes changing realms aFter logging in to world (#11415)

* …ter logging in to world

* upd

Co-authored-by: Badanin Roman <r.badanin@etud.univ-pau.fr>
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
r0m1ntik
2022-04-16 22:44:15 +02:00
committed by GitHub
parent c283883aea
commit 02ba514f0a

View File

@@ -847,8 +847,8 @@ bool AuthSession::VerifyVersion(uint8 const* a, int32 aLength, Acore::Crypto::SH
if (!sConfigMgr->GetOption<bool>("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)
{