mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
If no more module is found don't try to call setXXent functions but
leave unsuccessfully.
This commit is contained in:
parent
7ad4715b79
commit
8c0c1d7472
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user