aboutsummaryrefslogtreecommitdiffstats
path: root/community/connman/musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/connman/musl.patch')
-rw-r--r--community/connman/musl.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/connman/musl.patch b/community/connman/musl.patch
new file mode 100644
index 0000000000..f87807f360
--- /dev/null
+++ b/community/connman/musl.patch
@@ -0,0 +1,18 @@
+In musl > 1.1.21 freeaddrinfo() implementation changed and
+was causing a segmentation fault.
+
+diff --git a/gweb/gweb.c b/gweb/gweb.c
+index 393afe0..12fcb1d 100644
+--- a/gweb/gweb.c
++++ b/gweb/gweb.c
+@@ -1274,7 +1274,8 @@ static bool is_ip_address(const char *host)
+ addr = NULL;
+
+ result = getaddrinfo(host, NULL, &hints, &addr);
+- freeaddrinfo(addr);
++ if(!result)
++ freeaddrinfo(addr);
+
+ return result == 0;
+ }
+