]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
If no more module is found don't try to call setXXent functions but
authorUlrich Drepper <drepper@redhat.com>
Wed, 4 Mar 1998 11:29:45 +0000 (11:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 4 Mar 1998 11:29:45 +0000 (11:29 +0000)
leave unsuccessfully.

nss/getXXent_r.c

index 60f1009270a24d1a21cdfbf6b114d9cdf4b11e98..91be88739dc552fedb36cfc5ea37834939dcdd76 100644 (file)
@@ -276,7 +276,12 @@ INTERNAL (REENTRANT_GETNAME) (LOOKUP_TYPE *resbuf, char *buffer, size_t buflen,
            if (! no_more)
              status = (*sfct) (STAYOPEN_TMPVAR);
            else
-             status = NSS_STATUS_NOTFOUND;
+             {
+               status = NSS_STATUS_NOTFOUND;
+               if (no_more == 1)
+                 /* There is no more module to search.  */
+                 break;
+             }
          }
        while (! no_more && status != NSS_STATUS_SUCCESS);
     }