1 Star 0 Fork 32

jinag12/gazelle_1

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0185-fix-fin-pack-free-coredump.patch 797 Bytes
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangheng12/gazelle_1.git
git@gitee.com:jiangheng12/gazelle_1.git
jiangheng12
gazelle_1
gazelle_1
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385