Module: kamailio
Branch: master
Commit: 433551f3ea00e4151f2fa4e84d7c52422b6cefe3
URL:
https://github.com/kamailio/kamailio/commit/433551f3ea00e4151f2fa4e84d7c524…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-12-10T12:46:34+01:00
tls: init EVP_PKEY pointer when loading engine key
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/433551f3ea00e4151f2fa4e84d7c524…
Patch:
https://github.com/kamailio/kamailio/commit/433551f3ea00e4151f2fa4e84d7c524…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 2188345a1a..3bfe0b8f99 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -1194,7 +1194,7 @@ EVP_PKEY* tls_lookup_private_key(SSL_CTX* ctx)
static int load_engine_private_key(tls_domain_t* d)
{
int idx, ret_pwd, i;
- EVP_PKEY *pkey;
+ EVP_PKEY *pkey = 0;
int procs_no;
char ctx_str[64];