]> git.sur5r.net Git - openldap/commitdiff
Fix modrdn / delOldRDN leaving empty mods
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 5 Mar 2009 21:29:09 +0000 (21:29 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 5 Mar 2009 21:29:09 +0000 (21:29 +0000)
servers/slapd/syncrepl.c

index 69e5a9b095c110443d40509c85356be6a75ac391..8511fc4ddad29d3019e7da2f2a618a9e0cd55d65 100644 (file)
@@ -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;
                                        }
                                }