diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2011-07-05 19:40:43 +0200 |
---|---|---|
committer | Fabian Affolter <fabian@bernewireless.net> | 2011-07-05 19:40:43 +0200 |
commit | 7f9851115264bca9bce3926ddb29e533a23929dd (patch) | |
tree | b0426fc489e4dad582f34b25d6f93354a65f5c0f /main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch | |
parent | 5dac3f219058736f6e19b7bec2b1cc2b1b300981 (diff) | |
parent | 269fc1049583d36e07153215fe535f88947ea98b (diff) | |
download | aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.bz2 aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.xz |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch')
-rw-r--r-- | main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch b/main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch new file mode 100644 index 0000000000..bdd3ce4892 --- /dev/null +++ b/main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch @@ -0,0 +1,37 @@ +From 66cdddf50492b9b645200ef580ae957c388694ab Mon Sep 17 00:00:00 2001 +From: Natanael Copa <natanael.copa@gmail.com> +Date: Wed, 8 Jun 2011 09:12:16 +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 +--- + 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.5.4 + |