1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-16 08:17:41 +03:00
openwrt-xburst/toolchain/uClibc/patches/009-fix_getaddrinfo_infinite_loop.patch
hauke 782cc4f1ad uClibc: refresh patches for uClibc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-21 14:32:21 +00:00

14 lines
368 B
Diff

--- a/libc/inet/getaddrinfo.c
+++ b/libc/inet/getaddrinfo.c
@@ -858,7 +858,10 @@ getaddrinfo (const char *name, const cha
if (hints->ai_family == g->family || hints->ai_family == AF_UNSPEC)
{
if ((hints->ai_flags & AI_ADDRCONFIG) && !addrconfig(g->family))
+ {
+ g++;
continue;
+ }
j++;
if (pg == NULL || pg->gaih != g->gaih)
{