Re: getaddrinfo of uClibc-0.9.3

2008-12-08 Thread Bernhard Reutner-Fischer
On Mon, Dec 08, 2008 at 07:57:26AM +0900, Tomoyoshi ASANO wrote:
I'm soryy that it's already post the information by
[PATCH] bug in __check_pf() (getaddrinfo.c) 12/5/2008

applied. Thanks
___
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc


getaddrinfo of uClibc-0.9.3

2008-12-07 Thread Tomoyoshi ASANO
Hello,

I have SEGV at busybox's telnet with uClibc-0.9.30.
It seem the current uClibc-trunk has the same problem.

diff -Nru 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-29 01:25:10.0 
+0900
+++ uClibc-0.9.30/libc/inet/getaddrinfo.c   2008-12-08 06:52:48.0 
+0900
@@ -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,6 +195,7 @@
if (runp-ifa_addr-sa_family == PF_INET6)
seen |= SEEN_IPV6;
 #endif /* __UCLIBC_HAS_IPV6__ */
+   }

freeifaddrs(ifa);
}

Thanks,
-- Tom

___
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc


Re: getaddrinfo of uClibc-0.9.3

2008-12-07 Thread Tomoyoshi ASANO
I'm soryy that it's already post the information by
[PATCH] bug in __check_pf() (getaddrinfo.c) 12/5/2008

-- Tom

On Mon, 08 Dec 2008 07:36:33 +0900
Tomoyoshi ASANO [EMAIL PROTECTED] wrote:

 Hello,
 
 I have SEGV at busybox's telnet with uClibc-0.9.30.
 It seem the current uClibc-trunk has the same problem.
 
 diff -Nru 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-29 01:25:10.0 
 +0900
 +++ uClibc-0.9.30/libc/inet/getaddrinfo.c   2008-12-08 06:52:48.0 
 +0900
 @@ -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,6 +195,7 @@
 if (runp-ifa_addr-sa_family == PF_INET6)
 seen |= SEEN_IPV6;
  #endif /* __UCLIBC_HAS_IPV6__ */
 +   }
 
 freeifaddrs(ifa);
 }
 

___
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc