When innetgr() is called with ("group", NULL, "user", NULL), the program segfaults because of a strdup(NULL). See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=208718.
This is already fixed on glibc trunk: 2006-10-10 Ulrich Drepper <drepper@redhat.com> * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH components which lack them. * nis/nis_subr.c (nis_getnames): Make sure that we always return at least one entry consisting of the parameter concatenated with the domain. and is planned soon for glibc-2_5-branch.