From 8bcbc7ef61b9193da5d3deb519211a2406564298 Mon Sep 17 00:00:00 2001 From: compile_success <980965867@qq.com> Date: Fri, 7 Jun 2024 01:51:34 +0000 Subject: [PATCH] fix fin pack free coredump --- src/lstack/core/lstack_lwip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstack/core/lstack_lwip.c b/src/lstack/core/lstack_lwip.c index 667ffd7..628319c 100644 --- a/src/lstack/core/lstack_lwip.c +++ b/src/lstack/core/lstack_lwip.c @@ -88,7 +88,7 @@ static void reset_sock_data(struct lwip_sock *sock) sock->remain_len = 0; sock->already_bind_numa = 0; - if (sock->recv_lastdata) { + if (sock->recv_lastdata && sock->recv_lastdata != (void *)&fin_packet) { pbuf_free(sock->recv_lastdata); } sock->recv_lastdata = NULL; -- 2.33.0