diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-26 18:25:39 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-26 18:25:39 +0000 |
commit | 832e00da4f5af7f43a974eefbeb64390cfc5ad38 (patch) | |
tree | 5f0c2b583ba9b8bc3247e5fe8913a06417ff265f /patches/uClibc | |
parent | f049d64a0bc3caf2bc665f3f3306756958b3b5d7 (diff) | |
download | crosstool-ng-832e00da4f5af7f43a974eefbeb64390cfc5ad38.tar.gz crosstool-ng-832e00da4f5af7f43a974eefbeb64390cfc5ad38.tar.bz2 crosstool-ng-832e00da4f5af7f43a974eefbeb64390cfc5ad38.zip |
uClibc-0.9.30 patch, forwarded by Joachim Nilsson <joachim.nilsson@vmlinux.org>
Fix getaddrinfo when both IPv4 and IPv6 are enabled.
/trunk/patches/uClibc/0.9.30/150-getaddrinfo-segfault-ipv6-and-ipv4.patch | 32 32 0 0 ++++++++++
1 file changed, 32 insertions(+)
Diffstat (limited to 'patches/uClibc')
-rw-r--r-- | patches/uClibc/0.9.30/150-getaddrinfo-segfault-ipv6-and-ipv4.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.30/150-getaddrinfo-segfault-ipv6-and-ipv4.patch b/patches/uClibc/0.9.30/150-getaddrinfo-segfault-ipv6-and-ipv4.patch new file mode 100644 index 00000000..40f2928d --- /dev/null +++ b/patches/uClibc/0.9.30/150-getaddrinfo-segfault-ipv6-and-ipv4.patch @@ -0,0 +1,32 @@ +From: Tomoyoshi ASANO <asa@lineo.co.jp> +Message ID: <20081208073522.0AEF.22C34B8C@lineo.co.jp> + +Hello, + +I have SEGV at busybox's telnet with uClibc-0.9.30. +It seem the current uClibc-trunk has the same problem. + +Thanks, +-- Tom + +diff -ru uClibc-0.9.30.orig/libc/inet/getaddrinfo.c uClibc-0.9.30/libc/inet/getaddrinfo.c +--- uClibc-0.9.30.orig/libc/inet/getaddrinfo.c 2008-10-28 17:25:10.000000000 +0100 ++++ uClibc-0.9.30/libc/inet/getaddrinfo.c 2009-02-26 14:20:06.000000000 +0100 +@@ -186,7 +186,7 @@ + return seen; + } + +- for (runp = ifa; runp != NULL; runp = runp->ifa_next) ++ for (runp = ifa; runp != NULL; runp = runp->ifa_next) { + #if defined __UCLIBC_HAS_IPV4__ + if (runp->ifa_addr->sa_family == PF_INET) + seen |= SEEN_IPV4; +@@ -195,7 +195,7 @@ + if (runp->ifa_addr->sa_family == PF_INET6) + seen |= SEEN_IPV6; + #endif /* __UCLIBC_HAS_IPV6__ */ +- ++ } + freeifaddrs(ifa); + } + #else |