svn commit: branches/uClibc-nptl/libc/inet
carmelo at uclibc.org
carmelo at uclibc.org
Mon Dec 8 19:57:16 UTC 2008
Author: carmelo
Date: 2008-12-08 11:57:16 -0800 (Mon, 08 Dec 2008)
New Revision: 24333
Log:
fix loop for checking ifaddr on both IPv4 and IPv6.
Modified:
branches/uClibc-nptl/libc/inet/getaddrinfo.c
Changeset:
Modified: branches/uClibc-nptl/libc/inet/getaddrinfo.c
===================================================================
--- branches/uClibc-nptl/libc/inet/getaddrinfo.c 2008-12-08 18:00:54 UTC (rev 24332)
+++ branches/uClibc-nptl/libc/inet/getaddrinfo.c 2008-12-08 19:57:16 UTC (rev 24333)
@@ -185,7 +185,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;
@@ -194,7 +194,7 @@
if (runp->ifa_addr->sa_family == PF_INET6)
seen |= SEEN_IPV6;
#endif /* __UCLIBC_HAS_IPV6__ */
-
+ }
freeifaddrs(ifa);
}
#else
More information about the uClibc-cvs
mailing list