summaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-12-10 15:44:26 -0800
committerPetr Baudis <pasky@ucw.cz>2010-01-18 17:54:36 +0100
commita4b737aa083bd422b15f6dc04b4ea35d18b111e9 (patch)
tree57e6dc44a75f3f440b620578267b05cacd9810b8 /nss
parent3decedce640208c25323bca68c98381c640ab06f (diff)
downloadglibc-a4b737aa083bd422b15f6dc04b4ea35d18b111e9.tar.gz
Fix a few error cases in *name4_r lookup handling.
(cherry picked from commit a682a1bf553b1efe4dbb03207fece5b719cec482)
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_files/files-hosts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c
index 68fb969937..e5f5b48b72 100644
--- a/nss/nss_files/files-hosts.c
+++ b/nss/nss_files/files-hosts.c
@@ -423,6 +423,11 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
if (! keep_stream)
internal_endent ();
}
+ else if (status == NSS_STATUS_TRYAGAIN)
+ {
+ *errnop = errno;
+ *herrnop = TRY_AGAIN;
+ }
else
{
*errnop = errno;