Blame SOURCES/glibc-rh1046199.patch

147e83
commit d41242129ba693cdbc8db85b846fcaccf9f0b7c4
147e83
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
147e83
Date:   Thu Jan 2 10:03:12 2014 +0530
147e83
147e83
    Fix infinite loop in nscd when netgroup is empty (bz #16365)
147e83
147e83
diff -pruN glibc-2.17-c758a686/nscd/netgroupcache.c glibc-2.17-c758a686/nscd/netgroupcache.c
147e83
--- glibc-2.17-c758a686/nscd/netgroupcache.c	2013-12-20 04:38:40.432000000 -0500
147e83
+++ glibc-2.17-c758a686/nscd/netgroupcache.c	2013-12-20 04:37:29.945000000 -0500
147e83
@@ -204,9 +204,10 @@ addgetnetgrentX (struct database_dyn *db
147e83
 		    int e;
147e83
 		    status = getfct.f (&data, buffer + buffilled,
147e83
 				       buflen - buffilled, &e);
147e83
-		    if (status == NSS_STATUS_RETURN)
147e83
-		      /* This was the last one for this group.  Look
147e83
-			 at next group if available.  */
147e83
+		    if (status == NSS_STATUS_RETURN
147e83
+			|| status == NSS_STATUS_NOTFOUND)
147e83
+		      /* This was either the last one for this group or the
147e83
+			 group was empty.  Look at next group if available.  */
147e83
 		      break;
147e83
 		    if (status == NSS_STATUS_SUCCESS)
147e83
 		      {