diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-13 23:04:40 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-13 23:04:40 +0000 |
commit | cfca0aa39759db23eafd06fda9d989bd36f35a88 (patch) | |
tree | b5f0aa6148e16b67046383d3ffce7086e44afcc8 /nscd/nscd_getai.c | |
parent | 43d3e6bd9210fc5900734206ed9478067b3f8003 (diff) | |
download | glibc-cfca0aa39759db23eafd06fda9d989bd36f35a88.zip glibc-cfca0aa39759db23eafd06fda9d989bd36f35a88.tar.gz glibc-cfca0aa39759db23eafd06fda9d989bd36f35a88.tar.bz2 |
[BZ #3195]
* nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
no entry.
* nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
* nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
* nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
* nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
Diffstat (limited to 'nscd/nscd_getai.c')
-rw-r--r-- | nscd/nscd_getai.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/nscd_getai.c b/nscd/nscd_getai.c index 5df32dc..56f9637 100644 --- a/nscd/nscd_getai.c +++ b/nscd/nscd_getai.c @@ -168,8 +168,8 @@ __nscd_getai (const char *key, struct nscd_ai_result **result, int *h_errnop) /* Store the error number. */ *h_errnop = ai_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; } |