summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}