Skip to content

Commit

Permalink
iperf3: fix crashing with musl
Browse files Browse the repository at this point in the history
Upstream backport.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Nov 21, 2024
1 parent 440a6e7 commit 9c9f4dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/iperf3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions net/iperf3/patches/030-musl-crash.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From 3da07ae96f5b40f76b75e1ccd4b20267f6a5988e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= <[email protected]>
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;
}

0 comments on commit 9c9f4dd

Please sign in to comment.