From aa1514886aee21bb89ac946a724d8cfcab4383ce Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 13 Apr 2011 15:21:32 -0400 Subject: memberof: fix calculation of replaced members We were skipping the check on the next value in the added list when a match was found for the currentr value being checked. --- src/ldb_modules/memberof.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ldb_modules/memberof.c b/src/ldb_modules/memberof.c index 9198e19b4..d779078b9 100644 --- a/src/ldb_modules/memberof.c +++ b/src/ldb_modules/memberof.c @@ -2734,6 +2734,7 @@ static int mbof_mod_process(struct mbof_mod_ctx *mod_ctx, bool *done) added->dns[j] = added->dns[j+1]; } added->num--; + i--; } } } -- cgit