[SSSD] [PATCH] LDAP: Continue adjusting group membership even if there is nothing to add

Jakub Hrozek jhrozek at redhat.com
Wed Dec 5 21:50:58 UTC 2012


Please see the attached patch.
-------------- next part --------------
>From daf3366d1615c3b32a7a01d222604484f93d4297 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Wed, 5 Dec 2012 22:41:30 +0100
Subject: [PATCH] LDAP: Continue adjusting group membership even if there is
 nothing to add

https://fedorahosted.org/sssd/ticket/1695
---
 src/providers/ldap/sdap_async_initgroups.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 6936c7b56b70477e5024e5b47f9f96c4ea60e605..029096dac06a32dc4942a0daeaff6014f7c2af40 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -1859,8 +1859,7 @@ save_rfc2307bis_group_memberships(struct sdap_initgr_rfc2307bis_state *state)
         grp_count ^= grp_count_old;
 
         if (num_added == 0) {
-            /* Nothing to add. Skip. */
-            continue;
+            add = NULL;
         } else {
             add[num_added] = NULL;
         }
-- 
1.8.0.1



More information about the sssd-devel mailing list