Explorar o código

Only validate encryption key, if it is actually set (fixes d49a5d6f)

Source commit: 8a909d9d6a2c0f31ad2128bdc59661a0e7cd5df9
Martin Prikryl %!s(int64=6) %!d(string=hai) anos
pai
achega
ce84468081
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      source/core/Terminal.cpp

+ 4 - 1
source/core/Terminal.cpp

@@ -1142,7 +1142,10 @@ void __fastcall TTerminal::Open()
   try
   {
     FEncryptKey = HexToBytes(FSessionData->EncryptKey);
-    ValidateEncryptKey(FEncryptKey);
+    if (IsEncryptingFiles())
+    {
+      ValidateEncryptKey(FEncryptKey);
+    }
 
     DoInformation(L"", true, 1);
     try