iperf3: fix crashing with musl
authorRosen Penev <rosenp@gmail.com>
Wed, 20 Nov 2024 23:21:43 +0000 (15:21 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 21 Nov 2024 00:59:16 +0000 (16:59 -0800)
Upstream backport.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/iperf3/Makefile
net/iperf3/patches/030-musl-crash.patch [new file with mode: 0644]

index 41ae2d6f13002de6c02d41e7b76035fca5a51bff..45d4721bf288660c0dba15f81d5acbb3366fe40b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=iperf
 PKG_VERSION:=3.17.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.es.net/pub/iperf
diff --git a/net/iperf3/patches/030-musl-crash.patch b/net/iperf3/patches/030-musl-crash.patch
new file mode 100644 (file)
index 0000000..bc1df68
--- /dev/null
@@ -0,0 +1,19 @@
+From 3da07ae96f5b40f76b75e1ccd4b20267f6a5988e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= <kulikjak@gmail.com>
+Date: Wed, 28 Aug 2024 09:43:04 +0200
+Subject: [PATCH] remove incorrect freeaddrinfo call
+
+---
+ src/net.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/src/net.c
++++ b/src/net.c
+@@ -145,7 +145,6 @@ create_socket(int domain, int proto, con
+     if ((gerror = getaddrinfo(server, portstr, &hints, &server_res)) != 0) {
+       if (local)
+           freeaddrinfo(local_res);
+-        freeaddrinfo(server_res);
+         return -1;
+     }