瀏覽代碼

Merge branch 'master' into dev

Source commit: 6d03627b7e1a7a0834b8c20740aa7f626b4715b4
Martin Prikryl 5 年之前
父節點
當前提交
3cc16c3062
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      source/core/Common.cpp
  2. 1 1
      source/core/Terminal.cpp

+ 1 - 0
source/core/Common.cpp

@@ -3269,6 +3269,7 @@ void __fastcall ParseCertificate(const UnicodeString & Path,
 {
   Certificate = NULL;
   PrivateKey = NULL;
+  WrongPassphrase = false;
   bool HasPassphrase = !Passphrase.IsEmpty();
 
   FILE * File;

+ 1 - 1
source/core/Terminal.cpp

@@ -7830,7 +7830,7 @@ bool __fastcall TTerminal::LoadTlsCertificate(X509 *& Certificate, EVP_PKEY *& P
     {
       Retry = false;
 
-      bool WrongPassphrase = false;
+      bool WrongPassphrase;
       ParseCertificate(SessionData->TlsCertificateFile, Passphrase, Certificate, PrivateKey, WrongPassphrase);
       if (WrongPassphrase)
       {