gazelle/0142-do_setsockopt-function-no-longer-checks-the-results-.patch
jiangheng 4f41c856dc sync fix rpc_pool create failed coredump
(cherry picked from commit 02e9e68a47db8e0c47ddb8756a2199aa0b769bb9)
2024-03-15 10:46:33 +08:00

30 lines
941 B
Diff

From 712a3c23451ed79449cea9322586d958c27c679f Mon Sep 17 00:00:00 2001
From: jiangjixiang <jiangjixiang@kylinos.cn>
Date: Fri, 1 Mar 2024 10:10:01 +0800
Subject: [PATCH] do_setsockopt function no longer checks the results of the
kernel.
---
src/lstack/api/lstack_wrap.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/lstack/api/lstack_wrap.c b/src/lstack/api/lstack_wrap.c
index 8992e39..1e36d3d 100644
--- a/src/lstack/api/lstack_wrap.c
+++ b/src/lstack/api/lstack_wrap.c
@@ -398,10 +398,7 @@ static inline int32_t do_setsockopt(int32_t s, int32_t level, int32_t optname, c
}
/* we both set kernel and lwip */
- int32_t ret = posix_api->setsockopt_fn(s, level, optname, optval, optlen);
- if (ret != 0) {
- return ret;
- }
+ posix_api->setsockopt_fn(s, level, optname, optval, optlen);
return g_wrap_api->setsockopt_fn(s, level, optname, optval, optlen);
}
--
2.27.0