svn commit: branches/uClibc_0_9_30/libc/inet

aldot at uclibc.org aldot at uclibc.org
Mon Dec 8 16:29:41 UTC 2008


Author: aldot
Date: 2008-12-08 08:29:41 -0800 (Mon, 08 Dec 2008)
New Revision: 24326

Log:
- fix loop for checking ifaddr on both IPv4 and IPv6 (r24317 from trunk)


Modified:
   branches/uClibc_0_9_30/libc/inet/getaddrinfo.c


Changeset:
Modified: branches/uClibc_0_9_30/libc/inet/getaddrinfo.c
===================================================================
--- branches/uClibc_0_9_30/libc/inet/getaddrinfo.c	2008-12-08 14:52:16 UTC (rev 24325)
+++ branches/uClibc_0_9_30/libc/inet/getaddrinfo.c	2008-12-08 16:29:41 UTC (rev 24326)
@@ -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




More information about the uClibc-cvs mailing list