If no more module is found don't try to call setXXent functions but

leave unsuccessfully.
This commit is contained in:
Ulrich Drepper 1998-03-04 11:29:45 +00:00
parent 7ad4715b79
commit 8c0c1d7472

View 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);
}