Browse code

tls: init EVP_PKEY pointer when loading engine key

Daniel-Constantin Mierla authored on 10/12/2019 11:46:34
Showing 1 changed files
... ...
@@ -1194,7 +1194,7 @@ EVP_PKEY* tls_lookup_private_key(SSL_CTX* ctx)
1194 1194
 static int load_engine_private_key(tls_domain_t* d)
1195 1195
 {
1196 1196
 	int idx, ret_pwd, i;
1197
-	EVP_PKEY *pkey;
1197
+	EVP_PKEY *pkey = 0;
1198 1198
 	int procs_no;
1199 1199
 	char ctx_str[64];
1200 1200