diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-08 10:11:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-08 10:14:52 +0000 |
commit | 450f9b09488dc2f4ee053f2ae5afcdd2b97f27b0 (patch) | |
tree | 46644f80d72c08f4858138732752d63ee8fe59b2 /main | |
parent | 74aa3051a4bd487a90e5f6ff5a350dc4bdb1a792 (diff) | |
download | aports-450f9b09488dc2f4ee053f2ae5afcdd2b97f27b0.tar.bz2 aports-450f9b09488dc2f4ee053f2ae5afcdd2b97f27b0.tar.xz |
main/libc0.9.32: fix for getaddrinfo
This solves issue with iptables-1.4.11
Upstream:
https://bugs.busybox.net/show_bug.cgi?id=3841
http://bugzilla.netfilter.org/show_bug.cgi?id=721
Diffstat (limited to 'main')
-rw-r--r-- | main/libc0.9.32/0001-getaddrinfo-allow-numeric-service-without-any-hints.patch | 37 | ||||
-rw-r--r-- | main/libc0.9.32/APKBUILD | 4 |
2 files changed, 40 insertions, 1 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 + diff --git a/main/libc0.9.32/APKBUILD b/main/libc0.9.32/APKBUILD index 501083e3ec..a1ff9e4346 100644 --- a/main/libc0.9.32/APKBUILD +++ b/main/libc0.9.32/APKBUILD @@ -4,7 +4,7 @@ pkgname=libc$_abiver _gitver= pkgver=0.9.32_rc3 _ver=${pkgver/_/-} -pkgrel=14 +pkgrel=15 pkgdesc="C library for developing embedded Linux systems" url=http://uclibc.org license="LGPL-2" @@ -32,6 +32,7 @@ source="http://uclibc.org/downloads/uClibc-${_ver}.tar.bz2 0001-utils-ldd-Check-for-returned-pointer-from-strrchr-no.patch 0001-posix_fadvise64-fix-x86-implementation.patch 0001-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch + 0001-getaddrinfo-allow-numeric-service-without-any-hints.patch uclibc-generic-backtrace.patch uclibc-ubacktrace-asneeded-fix.patch uclibcconfig.x86 @@ -141,6 +142,7 @@ b4fb68ad3d0e8331b1b40c30eb21dfdc 0002-stdlib-fix-arc4random-return-type-to-u_in 12f6297249755d3996918485bbd6031d 0001-utils-ldd-Check-for-returned-pointer-from-strrchr-no.patch 100d026c2d7cf7fc5906229448c791d4 0001-posix_fadvise64-fix-x86-implementation.patch 2548d9f470c9a5b2c117ec3d6f35c105 0001-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch +9e1ffc8dae55f4489c770f284734804f 0001-getaddrinfo-allow-numeric-service-without-any-hints.patch 871956085df0bf90f4054e294a3770ce uclibc-generic-backtrace.patch 814ae23243116cf61690218b9b6019f6 uclibc-ubacktrace-asneeded-fix.patch 35ef159d3c56ad67f520ab033e0f6930 uclibcconfig.x86 |