summaryrefslogtreecommitdiff
path: root/libc/nscd/nscd_gethst_r.c
diff options
context:
space:
mode:
authorjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-10-15 20:14:17 +0000
committerjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-10-15 20:14:17 +0000
commit2578d0508a978254dda6fd63a066e5383ed4a92e (patch)
treeb9377779d9760df1a993a07e5a5e3833f9b9dbc3 /libc/nscd/nscd_gethst_r.c
parenta6a5dd0d5b707d7da7fce387d68dfb5de2905978 (diff)
Merge changes between r3777 and r3809 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@3819 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/nscd/nscd_gethst_r.c')
-rw-r--r--libc/nscd/nscd_gethst_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/nscd/nscd_gethst_r.c b/libc/nscd/nscd_gethst_r.c
index 03b73a4a4..a21140475 100644
--- a/libc/nscd/nscd_gethst_r.c
+++ b/libc/nscd/nscd_gethst_r.c
@@ -379,8 +379,8 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type,
/* Store the error number. */
*h_errnop = hst_resp.error;
- /* The `errno' to some value != ERANGE. */
- __set_errno (ENOENT);
+ /* Set errno to 0 to indicate no error, just no found record. */
+ __set_errno (0);
/* Even though we have not found anything, the result is zero. */
retval = 0;
}