From: Howard Chu Date: Thu, 5 Mar 2009 19:43:55 +0000 (+0000) Subject: Fix modrdn / delOldRDN leaving empty mods X-Git-Tag: ACLCHECK_0~742 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce356b27b152a155577886552cc815d152087657;p=openldap Fix modrdn / delOldRDN leaving empty mods --- 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; } }