Browse Source

EncryptKeyPlain was not masked out in log

Source commit: 6f85ebd61e260cf7dc16cdfdd25b3f01cf06a892
Martin Prikryl 4 years ago
parent
commit
d2b1aa6353
1 changed files with 2 additions and 1 deletions
  1. 2 1
      source/core/SessionData.cpp

+ 2 - 1
source/core/SessionData.cpp

@@ -1978,7 +1978,8 @@ bool __fastcall TSessionData::MaskPasswordInOptionParameter(const UnicodeString
           SameText(Key, L"TunnelPasswordPlain") ||
           SameText(Key, L"TunnelPassphrase") ||
           SameText(Key, L"TunnelPassphrasePlain") ||
-          SameText(Key, L"EncryptKey"))
+          SameText(Key, L"EncryptKey") ||
+          SameText(Key, L"EncryptKeyPlain"))
       {
         Param = Key + L"=" + PasswordMask;
         Result = true;