diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-08-19 18:37:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-08-19 18:37:10 +0000 |
commit | ed3691bab2a633991d2b30f4367221a9d804fedc (patch) | |
tree | a0d77deef5ad93e50180bda9fe5ee9e260c9fce1 /nis/nss_nis/nis-service.c | |
parent | 8a6537b001828486c139509534c4f13ff5373631 (diff) | |
download | glibc-ed3691bab2a633991d2b30f4367221a9d804fedc.tar.gz glibc-ed3691bab2a633991d2b30f4367221a9d804fedc.tar.xz glibc-ed3691bab2a633991d2b30f4367221a9d804fedc.zip |
* nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
is empty simply return and use next service. * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
Diffstat (limited to 'nis/nss_nis/nis-service.c')
-rw-r--r-- | nis/nss_nis/nis-service.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nis/nss_nis/nis-service.c b/nis/nss_nis/nis-service.c index c0e064d9a4..0c176095c8 100644 --- a/nis/nss_nis/nis-service.c +++ b/nis/nss_nis/nis-service.c @@ -188,6 +188,10 @@ internal_nis_getservent_r (struct servent *serv, char *buffer, if (intern.start == NULL) internal_nis_setservent (); + if (intern.next == NULL) + /* Not one entry in the map. */ + return NSS_STATUS_NOTFOUND; + /* Get the next entry until we found a correct one. */ do { |