diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-11-15 04:08:00 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-11-15 04:08:00 +0000 |
commit | 54d79e995d5a6d0a393ed913b6e26dccc63de5b7 (patch) | |
tree | b758eeac8325f123f161c8d62c5956dc2a6d2556 /nss/getXXent_r.c | |
parent | b296c233447a37f77ccd9989fce24b45a8db1afa (diff) | |
download | glibc-54d79e995d5a6d0a393ed913b6e26dccc63de5b7.tar.gz glibc-54d79e995d5a6d0a393ed913b6e26dccc63de5b7.tar.xz glibc-54d79e995d5a6d0a393ed913b6e26dccc63de5b7.zip |
update from main archive 961114 cvs/libc-961115
Diffstat (limited to 'nss/getXXent_r.c')
-rw-r--r-- | nss/getXXent_r.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nss/getXXent_r.c b/nss/getXXent_r.c index cc47537129..876ad10963 100644 --- a/nss/getXXent_r.c +++ b/nss/getXXent_r.c @@ -262,13 +262,15 @@ INTERNAL (REENTRANT_GETNAME) (LOOKUP_TYPE *resbuf, char *buffer, size_t buflen, if (! no_more) status = (*sfct) (STAYOPEN_TMPVAR); + else + status = NSS_STATUS_NOTFOUND; } while (! no_more && status != NSS_STATUS_SUCCESS); } __libc_lock_unlock (lock); - *result = NSS_STATUS_SUCCESS ? resbuf : NULL; + *result = status == NSS_STATUS_SUCCESS ? resbuf : NULL; return status == NSS_STATUS_SUCCESS ? 0 : -1; } #define do_weak_alias(n1, n2) weak_alias (n1, n2) |