summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-12-08 16:29:41 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-12-08 16:29:41 +0000
commite261b634a079f4757f696ef6985aa759bcb1c1e1 (patch)
treedc8976faa34928d45d82739c36bffc97c497fc92 /libc
parent777f2ffcfb96c0bfb21a0648a1c77c76621717d5 (diff)
downloaduClibc-alpine-e261b634a079f4757f696ef6985aa759bcb1c1e1.tar.bz2
uClibc-alpine-e261b634a079f4757f696ef6985aa759bcb1c1e1.tar.xz
- fix loop for checking ifaddr on both IPv4 and IPv6 (r24317 from trunk)
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c
index 0fe3fdf22..ccc43b653 100644
--- a/libc/inet/getaddrinfo.c
+++ b/libc/inet/getaddrinfo.c
@@ -186,7 +186,7 @@ static unsigned __check_pf(void)
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 @@ static unsigned __check_pf(void)
if (runp->ifa_addr->sa_family == PF_INET6)
seen |= SEEN_IPV6;
#endif /* __UCLIBC_HAS_IPV6__ */
-
+ }
freeifaddrs(ifa);
}
#else