From 4728cb644861ff8c58586702bf6815c50a1c0dd2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 22 Aug 2006 09:05:41 +0000 Subject: Updated to fedora-glibc-20060822T0706 --- nis/nss_nis/nis-rpc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nis/nss_nis/nis-rpc.c') 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 { -- cgit v1.2.3