1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* grp/initgroups.c (internal_getgrouplist): Don't prematurely

abort if there is no initgroups_dyn function.
This commit is contained in:
Ulrich Drepper
2008-10-30 16:55:44 +00:00
parent 21b07d8ba5
commit 332c4465b0
3 changed files with 7 additions and 9 deletions

View File

@ -1008,7 +1008,7 @@ send_dg(res_state statp,
}
if (n == 0) {
Dprint(statp->options & RES_DEBUG, (stdout, ";; timeout\n"));
if (recvresp1 > 1 || (buf2 != NULL && recvresp2 > 1))
if (resplen > 1 && (recvresp1 || (buf2 != NULL && recvresp2)))
{
*resplen2 = 1;
return resplen;