Module: kamailio
Branch: 5.0
Commit: 62ff60d70093c548c5b21cbb7505ffe9b491bef6
URL:
https://github.com/kamailio/kamailio/commit/62ff60d70093c548c5b21cbb7505ffe…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-12-26T21:39:53+01:00
http_async_client: fix initialization of tls_client_* and tls_ca_path module parameters
fixes #1340
(cherry picked from commit 7c61d3f82bd0779a530f921bd69cd4b1b32e4e05)
---
Modified: src/modules/http_async_client/http_async_client_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/62ff60d70093c548c5b21cbb7505ffe…
Patch:
https://github.com/kamailio/kamailio/commit/62ff60d70093c548c5b21cbb7505ffe…
---
diff --git a/src/modules/http_async_client/http_async_client_mod.c
b/src/modules/http_async_client/http_async_client_mod.c
index 2554cc1b95..b2a3b4a478 100644
--- a/src/modules/http_async_client/http_async_client_mod.c
+++ b/src/modules/http_async_client/http_async_client_mod.c
@@ -70,9 +70,9 @@ int tls_version = 0; // Use default SSL version in HTTPS requests (see
curl/curl
int tls_verify_host = 1; // By default verify host in HTTPS requests
int tls_verify_peer = 1; // By default verify peer in HTTPS requests
int curl_verbose = 0;
-char* tls_client_cert = ""; // client SSL certificate path, defaults to NULL
-char* tls_client_key = ""; // client SSL certificate key path, defaults to
NULL
-char* tls_ca_path = ""; // certificate authority dir path, defaults to NULL
+char* tls_client_cert = NULL; // client SSL certificate path, defaults to NULL
+char* tls_client_key = NULL; // client SSL certificate key path, defaults to NULL
+char* tls_ca_path = NULL; // certificate authority dir path, defaults to NULL
static char *memory_manager = "shm";
extern int curl_memory_manager;
unsigned int default_authmethod = CURLAUTH_BASIC | CURLAUTH_DIGEST;