diff --git a/0163-fix-shutdown-should-return-ok-when-pcb-is-null.patch b/0163-fix-shutdown-should-return-ok-when-pcb-is-null.patch new file mode 100644 index 0000000000000000000000000000000000000000..4082f0f3075528f2e58de17814de050c3835a43a --- /dev/null +++ b/0163-fix-shutdown-should-return-ok-when-pcb-is-null.patch @@ -0,0 +1,25 @@ +From bd0379453a52d7b519b38afe8f0b8dbd723fb3b2 Mon Sep 17 00:00:00 2001 +From: hkk +Date: Wed, 4 Sep 2024 10:52:52 +0800 +Subject: [PATCH] fix: shutdown should return ok when pcb is null + +--- + src/api/api_msg.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/api/api_msg.c b/src/api/api_msg.c +index acd4697..da74a32 100644 +--- a/src/api/api_msg.c ++++ b/src/api/api_msg.c +@@ -2120,6 +2120,8 @@ lwip_netconn_do_join_leave_group(void *m) + #else + msg->err = ERR_VAL; + #endif /* LWIP_RAW */ ++ } else if (msg->conn->pcb.tcp == NULL ) { ++ msg->err = ERR_OK; + } else { + msg->err = ERR_VAL; + } +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 7321c47f52e758230859fef07e68940eeb46e4d3..2366b15c2d5079a3ec3323ca513e5f1977ec42a0 100644 --- a/lwip.spec +++ b/lwip.spec @@ -4,7 +4,7 @@ Summary: lwip is a small independent implementation of the TCP/IP protocol suite Name: lwip Version: 2.2.0 -Release: 53 +Release: 54 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -174,6 +174,7 @@ Patch9158: 0159-LOOPBACK-fix-loop-coredump.patch Patch9159: 0160-INIT-fix-lwip_init-failed-because-of-dpdk-set-errno.patch Patch9160: 0161-fix-the-definition-of-IPV6_V6ONLY.patch Patch9161: 0162-check-if-mem_init-returns-errno.patch +Patch9162: 0163-fix-shutdown-should-return-ok-when-pcb-is-null.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -203,6 +204,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Wed Sep 4 2024 hankangkang - 2.2.0-54 +- fix: shutdown should return ok when pcb is null + * Tue Aug 20 2024 yinbin - 2.2.0-53 - check if mem_init returns errno