From c8cb2e55eee48509acf57cab7027915b82866f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E9=B9=BF?= <18535853+PkllonG@users.noreply.github.com> Date: Sat, 27 Jul 2024 18:43:07 +0800 Subject: [PATCH] chore(Core/Authserver): Remove redundant conversion during Reconnect Proof cmd (#18957) https://github.com/TrinityCore/TrinityCore/pull/26765 Author: [walkline](https://github.com/walkline) --- src/server/apps/authserver/Server/AuthSession.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/server/apps/authserver/Server/AuthSession.cpp b/src/server/apps/authserver/Server/AuthSession.cpp index 648939cb1..741e4724e 100644 --- a/src/server/apps/authserver/Server/AuthSession.cpp +++ b/src/server/apps/authserver/Server/AuthSession.cpp @@ -689,12 +689,9 @@ bool AuthSession::HandleReconnectProof() if (_accountInfo.Login.empty()) return false; - BigNumber t1; - t1.SetBinary(reconnectProof->R1, 16); - Acore::Crypto::SHA1 sha; sha.UpdateData(_accountInfo.Login); - sha.UpdateData(t1.ToByteArray<16>()); + sha.UpdateData(reconnectProof->R1, 16); sha.UpdateData(_reconnectProof); sha.UpdateData(_sessionKey); sha.Finalize();