Browse Source

Setting HostName copied Password to NewPassword

No known problems caused by this, as we probably always set HostName before the Password

(cherry picked from commit 3716db5a91a2de261776c09478f6c8dcec11995b)

Source commit: 18b814687e8b3f4c224671d85d790bd718d407bd
Martin Prikryl 4 years ago
parent
commit
496dfb31d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/SessionData.cpp

+ 1 - 1
source/core/SessionData.cpp

@@ -2456,7 +2456,7 @@ void __fastcall TSessionData::SetHostName(UnicodeString value)
   {
     // HostName is key for password encryption
     UnicodeString XPassword = Password;
-    UnicodeString XNewPassword = Password;
+    UnicodeString XNewPassword = NewPassword;
     UnicodeString XEncryptKey = EncryptKey;
 
     // This is now hardly used as hostname is parsed directly on login dialog.