1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-21 02:36:47 +02:00
openwrt-xburst/toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch

14 lines
368 B
Diff
Raw Normal View History

--- 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)
{