Преглед изворни кода

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