diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 69e5a9b095..8511fc4dda 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2321,6 +2321,12 @@ retry_add:; break; } } + if ( !mod->sml_numvals ) { + /* Drop this op */ + *ml = mod->sml_next; + mod->sml_next = NULL; + slap_mods_free( mod, 1 ); + } break; } }