summaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-08-22 09:05:41 +0000
committerJakub Jelinek <jakub@redhat.com>2006-08-22 09:05:41 +0000
commit4728cb644861ff8c58586702bf6815c50a1c0dd2 (patch)
tree305ac8dc2d7c6eaf501ebe90d90cc174c8ae7e25 /nis
parentab3017a58b517cb20feb6e6688b9cb1948c00156 (diff)
Updated to fedora-glibc-20060822T0706cvs/fedora-glibc-2_4_90-23
Diffstat (limited to 'nis')
-rw-r--r--nis/nss_nis/nis-rpc.c4
-rw-r--r--nis/nss_nis/nis-service.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/nis/nss_nis/nis-rpc.c b/nis/nss_nis/nis-rpc.c
index e7049ffa9f..2fdb16ddde 100644
--- a/nis/nss_nis/nis-rpc.c
+++ b/nis/nss_nis/nis-rpc.c
@@ -117,6 +117,10 @@ internal_nis_getrpcent_r (struct rpcent *rpc, char *buffer, size_t buflen,
if (intern->start == NULL)
internal_nis_setrpcent (intern);
+ 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
{
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
{