Skip to content

Commit

Permalink
* sysdeps/posix/getaddrinfo.c (gaih_inet): When the
Browse files Browse the repository at this point in the history
	gethostbyname4_r function call succeeded, just leave the loop.
  • Loading branch information
Ulrich Drepper committed Dec 29, 2008
1 parent 5703f47 commit bfbbc63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2008-12-29 Ulrich Drepper <drepper@redhat.com>

* sysdeps/posix/getaddrinfo.c (gaih_inet): When the
gethostbyname4_r function call succeeded, just leave the loop.

[BZ #9694]
* wcsmbs/wchar.h: Move undefs for local __need_* constants to the
very end.
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/posix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ gaih_inet (const char *name, const struct gaih_service *service,
status = DL_CALL_FCT (fct4, (name, pat, tmpbuf,
tmpbuflen, &rc, &herrno,
NULL));
if (status == NSS_STATUS_SUCCESS)
break;
if (status != NSS_STATUS_TRYAGAIN
|| rc != ERANGE || herrno != NETDB_INTERNAL)
{
Expand Down

0 comments on commit bfbbc63

Please sign in to comment.