From 19f6e2d9436aeeb0351d451168520fe16bdf29a5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 5 Nov 2005 08:50:16 +0000 Subject: [PATCH] ITS#4148 fix replica mods --- servers/slapd/overlays/ppolicy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index e543a48575..c2d7fe65ac 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1186,8 +1186,7 @@ ppolicy_modify( Operation *op, SlapReply *rs ) a_lock = attr_find( e->e_attrs, ad_pwdAccountLockedTime ); a_fail = attr_find( e->e_attrs, ad_pwdFailureTime ); - for( prev = &op->oq_modify.rs_modlist, ml = *prev; ml; - prev = &ml->sml_next, ml = *prev ) { + for( prev = &op->oq_modify.rs_modlist, ml = *prev; ml; ml = *prev ) { if ( ml->sml_desc == slap_schema.si_ad_userPassword ) got_pw = 1; @@ -1217,8 +1216,10 @@ ppolicy_modify( Operation *op, SlapReply *rs ) *prev = ml->sml_next; ml->sml_next = NULL; slap_mods_free( ml, 1 ); + continue; } } + prev = &ml->sml_next; } /* If we're resetting the password, make sure grace, accountlock, -- 2.39.5