summaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-23 16:30:18 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-23 16:33:50 +0100
commit293f29e8c45ca0fcb064107e275a477ad1913106 (patch)
treea79d2b2b93af581c861488f2bca773e4751288f0 /main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch
parent453d9efbeb9055b3762960fb09894a04ded1495f (diff)
downloadaports-293f29e8c45ca0fcb064107e275a477ad1913106.tar.bz2
aports-293f29e8c45ca0fcb064107e275a477ad1913106.tar.xz
main/libc0.9.32: reorganize patches
We keep track of our patches in git now: http://git.alpinelinux.org/cgit/uClibc-alpine This is so its easier to keep track of upstream and make sure that our patches are upstreamed. we also bump pkgrel so we make sure we get the patches tested properly
Diffstat (limited to 'main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch')
-rw-r--r--main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch b/main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch
new file mode 100644
index 000000000..2cb303a94
--- /dev/null
+++ b/main/libc0.9.32/0012-getaddrinfo-allow-numeric-service-without-any-hints.patch
@@ -0,0 +1,41 @@
+From eb5d129b641c644d82089c3ded3d36288c66123c Mon Sep 17 00:00:00 2001
+From: Natanael Copa <natanael.copa@gmail.com>
+Date: Sun, 12 Jun 2011 12:09:04 +0000
+Subject: [PATCH] getaddrinfo: allow numeric service without any hints
+
+This appears to correspond to what glibc does and this fixes an
+issue with iptables-1.4.11 with udp and raw port numbers.
+
+(see http://bugzilla.netfilter.org/show_bug.cgi?id=721)
+
+This fixes #3841
+https://bugs.busybox.net/show_bug.cgi?id=3841
+
+Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
+Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+(cherry picked from commit bc3be18145e4d57e7268506f123c0f0f373a15e2)
+---
+ libc/inet/getaddrinfo.c | 7 -------
+ 1 files changed, 0 insertions(+), 7 deletions(-)
+
+diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c
+index 1a77c51..e7511f6 100644
+--- a/libc/inet/getaddrinfo.c
++++ b/libc/inet/getaddrinfo.c
+@@ -820,13 +820,6 @@ getaddrinfo(const char *name, const char *service,
+ if (hints->ai_flags & AI_NUMERICSERV)
+ return EAI_NONAME;
+ gaih_service.num = -1;
+- } else {
+- /*
+- * Can't specify a numerical socket unless a protocol
+- * family was given.
+- */
+- if (hints->ai_socktype == 0 && hints->ai_protocol == 0)
+- return EAI_SERVICE;
+ }
+ pservice = &gaih_service;
+ } else
+--
+1.7.8
+