From 6b1aae23bbfd67b2fdae10f96a2843a6eee5e80d Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Tue, 10 Oct 2023 19:42:12 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E4=BF=AE=E5=A4=8Dcmsg=E8=A2=AB=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E5=90=8E=EF=BC=8C=E7=BB=A7=E7=BB=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=AF=BC=E8=87=B4core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_packet_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/tfe_packet_io.cpp b/common/src/tfe_packet_io.cpp index ea5b691..888b10f 100644 --- a/common/src/tfe_packet_io.cpp +++ b/common/src/tfe_packet_io.cpp @@ -1314,6 +1314,7 @@ static int handle_session_opening(struct metadata *meta, struct ctrl_pkt_parser } } + tfe_cmsg_dup(parser->cmsg); if (tfe_proxy_fds_accept(thread->ref_proxy, fd_downstream, fd_upstream, fd_fake_c, fd_fake_s, parser->cmsg) < 0) { TFE_LOG_ERROR(logger, "%s: session %lu Failed at tfe_proxy_fds_accept()", LOG_TAG_PKTIO, meta->session_id); @@ -1391,7 +1392,6 @@ passthrough: session_table_insert(thread->session_table, s_ctx->session_id, &(s_ctx->c2s_info.tuple4), s_ctx, session_value_free_cb); ATOMIC_INC(&(packet_io_fs->session_num)); - tfe_cmsg_dup(parser->cmsg); if (parser->seq_header) FREE(&parser->seq_header); if (parser->ack_header)