Skip to content
Snippets Groups Projects
Commit 28a650e1 authored by Nicolas Thill's avatar Nicolas Thill
Browse files

Fix a bug causing an infinite loop in getaddrinfo (closes: #3344)

SVN-Revision: 11106
parent 8222d04d
No related branches found
No related tags found
No related merge requests found
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)
{
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment