summaryrefslogtreecommitdiffstats
path: root/exporting/send_data.c
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2020-05-27 07:22:40 +0000
committerGitHub <noreply@github.com>2020-05-27 10:22:40 +0300
commit00f73c99e9244526b4d12b0fe85ecf855d34b261 (patch)
tree55aac782eb203280761dd824127e53e731fe5f8b /exporting/send_data.c
parent9426ade107c49080b50a265494f78eac85790a10 (diff)
cov_358988: Remove coverity bug (#9180)
Diffstat (limited to 'exporting/send_data.c')
-rw-r--r--exporting/send_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exporting/send_data.c b/exporting/send_data.c
index f96c32bdee..f5fbc03401 100644
--- a/exporting/send_data.c
+++ b/exporting/send_data.c
@@ -387,7 +387,7 @@ void simple_connector_worker(void *instance_p)
#endif
#ifdef ENABLE_HTTPS
- if (options & EXPORTING_OPTION_USE_TLS) {
+ if (instance->config.type == EXPORTING_CONNECTOR_TYPE_OPENTSDB_USING_HTTP && options & EXPORTING_OPTION_USE_TLS) {
SSL_free(connector_specific_data->conn);
freez(instance->connector_specific_data);
}