Browse Source

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

Source commit: e128c512f98c1e730b345963aa1b84634e731a7a
Martin Prikryl 9 years ago
parent
commit
eef1566af3
1 changed files with 3 additions and 0 deletions
  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