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:
@@ -847,8 +847,8 @@ bool AuthSession::VerifyVersion(uint8 const* a, int32 aLength, Acore::Crypto::SH
|
|||||||
if (!sConfigMgr->GetOption<bool>("StrictVersionCheck", false))
|
if (!sConfigMgr->GetOption<bool>("StrictVersionCheck", false))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
Acore::Crypto::SHA1::Digest zeros;
|
Acore::Crypto::SHA1::Digest zeros{};
|
||||||
Acore::Crypto::SHA1::Digest const* versionHash = nullptr;
|
Acore::Crypto::SHA1::Digest const* versionHash{ nullptr };
|
||||||
|
|
||||||
if (!isReconnect)
|
if (!isReconnect)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user