clean up uclibc patch/config version handling a bit
[openwrt.git] / toolchain / uClibc / patches-0.9.29 / 009-fix_getaddrinfo_infinite_loop.patch
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 (file)
index 0000000..5d702a3
--- /dev/null
@@ -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)
+           {
This page took 0.019025 seconds and 4 git commands to generate.