aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Server/AuthSession.cpp
diff options
context:
space:
mode:
authorAnton Popovichenko <walkline.ua@gmail.com>2021-08-08 13:19:30 +0200
committerGitHub <noreply@github.com>2021-08-08 13:19:30 +0200
commitccf1932bc527a4c87028be181396e39fc81088df (patch)
treedbcf6a023ccd5c78b111d268ceecbb86ba963396 /src/server/authserver/Server/AuthSession.cpp
parent372c84392b064d3308ad49f5aca5e3223de59b66 (diff)
Core/Authserver: Remove redundant conversion during Reconnect Proof cmd (#26765)
Diffstat (limited to 'src/server/authserver/Server/AuthSession.cpp')
-rw-r--r--src/server/authserver/Server/AuthSession.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp
index dc0bcdd9465..bc90743a771 100644
--- a/src/server/authserver/Server/AuthSession.cpp
+++ b/src/server/authserver/Server/AuthSession.cpp
@@ -680,12 +680,9 @@ bool AuthSession::HandleReconnectProof()
if (_accountInfo.Login.empty())
return false;
- BigNumber t1;
- t1.SetBinary(reconnectProof->R1, 16);
-
Trinity::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();