1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* sysdeps/posix/getaddrinfo.c (getaddrinfo): Rewrite to avoid loop

over gaih array.  There is only on function to call in the moment.
This commit is contained in:
Ulrich Drepper
2006-04-18 23:35:12 +00:00
parent 3af48b5b31
commit 786dcb6287
3 changed files with 45 additions and 6 deletions

View File

@ -131,7 +131,7 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6,
break;
case IFA_ADDRESS:
address = RTA_DATA (ta);
address = RTA_DATA (rta);
break;
}
@ -147,7 +147,7 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6,
memcpy (newp->info.addr, address ?: local,
sizeof (newp->info.addr));
newp->next = in6ailist;
in6ailsit = newp;
in6ailist = newp;
++in6ailistlen;
}
break;