cov_358988: Remove coverity bug (#9180)
thiagoftsm committed
May 27, 2020 at 07:22 UTC
00f73c99e9244526b4d12b0fe85ecf855d34b261
1 file changed
+1
-1
exporting/send_data.c
+1
-1
@@ -387,7 +387,7 @@ void simple_connector_worker(void *instance_p)
387
#endif
388
389
#ifdef ENABLE_HTTPS
390
- if (options & EXPORTING_OPTION_USE_TLS) {
390
+ if (instance->config.type == EXPORTING_CONNECTOR_TYPE_OPENTSDB_USING_HTTP && options & EXPORTING_OPTION_USE_TLS) {
391
SSL_free(connector_specific_data->conn);
392
freez(instance->connector_specific_data);
393
}