upstream: remove double check of tls_session
@@ -340,11 +340,9 @@ static int prepare_destroy_conn(struct flb_upstream_conn *u_conn)
static int destroy_conn(struct flb_upstream_conn *u_conn)
{
#ifdef FLB_HAVE_TLS
- if (u_conn->tls_session) {
if (u_conn->tls_session) {
flb_tls_session_destroy(u_conn->tls, u_conn);
}
- }
#endif
mk_list_del(&u_conn->_head);
flb_free(u_conn);
