mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:48:26 +02:00
Fix a bug causing an infinite loop in getaddrinfo (closes: #3344)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11106 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4fa2246c59
commit
e98062ae33
@ -0,0 +1,14 @@
|
||||
diff -ruN uClibc-0.9.29.orig/libc/inet/getaddrinfo.c uClibc-0.9.29/libc/inet/getaddrinfo.c
|
||||
--- uClibc-0.9.29.orig/libc/inet/getaddrinfo.c 2006-01-22 20:35:08.000000000 +0100
|
||||
+++ uClibc-0.9.29/libc/inet/getaddrinfo.c 2008-05-11 03:33:18.000000000 +0200
|
||||
@@ -858,7 +858,10 @@
|
||||
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)
|
||||
{
|
Loading…
Reference in New Issue
Block a user