aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch')
-rw-r--r--toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch b/toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch
new file mode 100644
index 0000000000..5d702a3ace
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.29/009-fix_getaddrinfo_infinite_loop.patch
@@ -0,0 +1,13 @@
+--- 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)
+ {