diff options
| author | wangmenglan <[email protected]> | 2023-10-10 19:42:12 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2023-10-10 19:42:12 +0800 |
| commit | 6b1aae23bbfd67b2fdae10f96a2843a6eee5e80d (patch) | |
| tree | 975389ad503c3dcdaa3f263b7c3e62f571b92180 | |
| parent | 2d2c72661a37f3a92df283f31a8f1b406e385393 (diff) | |
bugfix:修复cmsg被释放后,继续使用导致corev4.8.37-20231010
| -rw-r--r-- | common/src/tfe_packet_io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
