From 438baf508a68b04a2f3be0cc1227018d78b297fe Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 27 Oct 2023 10:54:27 +0300 Subject: [PATCH] tpws: remove redundant partner alive check --- tpws/tpws_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpws/tpws_conn.c b/tpws/tpws_conn.c index 0dcce60..386455f 100644 --- a/tpws/tpws_conn.c +++ b/tpws/tpws_conn.c @@ -963,7 +963,7 @@ static bool handle_epoll(tproxy_conn_t *conn, struct tailhead *conn_list, uint32 if (numbytes>0) { #ifdef SPLICE_PRESENT - if (!params.tamper || conn->remote && conn_partner_alive(conn) && conn->partner->track.bTamperInCutoff) + if (!params.tamper || conn->remote && conn->partner->track.bTamperInCutoff) { // incoming data from remote leg we splice without touching // pipe is in the local leg, so its in conn->partner->splice_pipe