You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
commit d41242129ba693cdbc8db85b846fcaccf9f0b7c4
|
|
|
|
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
|
|
|
|
Date: Thu Jan 2 10:03:12 2014 +0530
|
|
|
|
|
|
|
|
Fix infinite loop in nscd when netgroup is empty (bz #16365)
|
|
|
|
|
|
|
|
diff -pruN glibc-2.17-c758a686/nscd/netgroupcache.c glibc-2.17-c758a686/nscd/netgroupcache.c
|
|
|
|
--- glibc-2.17-c758a686/nscd/netgroupcache.c 2013-12-20 04:38:40.432000000 -0500
|
|
|
|
+++ glibc-2.17-c758a686/nscd/netgroupcache.c 2013-12-20 04:37:29.945000000 -0500
|
|
|
|
@@ -204,9 +204,10 @@ addgetnetgrentX (struct database_dyn *db
|
|
|
|
int e;
|
|
|
|
status = getfct.f (&data, buffer + buffilled,
|
|
|
|
buflen - buffilled, &e);
|
|
|
|
- if (status == NSS_STATUS_RETURN)
|
|
|
|
- /* This was the last one for this group. Look
|
|
|
|
- at next group if available. */
|
|
|
|
+ if (status == NSS_STATUS_RETURN
|
|
|
|
+ || status == NSS_STATUS_NOTFOUND)
|
|
|
|
+ /* This was either the last one for this group or the
|
|
|
|
+ group was empty. Look at next group if available. */
|
|
|
|
break;
|
|
|
|
if (status == NSS_STATUS_SUCCESS)
|
|
|
|
{
|