]> git.sur5r.net Git - openldap/commitdiff
Fix modrdn / delOldRDN leaving empty mods
authorHoward Chu <hyc@openldap.org>
Thu, 5 Mar 2009 19:43:55 +0000 (19:43 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 5 Mar 2009 19:43:55 +0000 (19:43 +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;
                                        }
                                }