summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ldb_modules/memberof.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ldb_modules/memberof.c b/src/ldb_modules/memberof.c
index e0a241a5e..c3f57630e 100644
--- a/src/ldb_modules/memberof.c
+++ b/src/ldb_modules/memberof.c
@@ -1876,6 +1876,11 @@ static int mbof_del_anc_callback(struct ldb_request *req,
talloc_free(valdn);
continue;
}
+ /* do not re-add the original deleted entry by mistake */
+ if (ldb_dn_compare(valdn, del_ctx->first->entry_dn) == 0) {
+ talloc_free(valdn);
+ continue;
+ }
new_list->dns = talloc_realloc(new_list,
new_list->dns,
struct ldb_dn *,