浏览代码

Bug fix: Failure when reading a private key from a .pem file fails

Source commit: e128c512f98c1e730b345963aa1b84634e731a7a
Martin Prikryl 9 年之前
父节点
当前提交
eef1566af3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      source/core/Common.cpp

+ 3 - 0
source/core/Common.cpp

@@ -2713,6 +2713,9 @@ void __fastcall ParseCertificate(const UnicodeString & Path,
   const UnicodeString & Passphrase, X509 *& Certificate, EVP_PKEY *& PrivateKey,
   bool & WrongPassphrase)
 {
+  Certificate = NULL;
+  PrivateKey = NULL;
+
   FILE * File;
 
   // Inspired by neon's ne_ssl_clicert_read