]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/tools.c
Converted all use of dn_parent to the in-place version. (Fixed a pdn leak
[openldap] / servers / slapd / back-bdb / tools.c
index 8b68ddeb650818cad01caea0dfac290567761a4d..992fb7346b52aac83fdf5387e712e64d72751173 100644 (file)
@@ -145,7 +145,7 @@ ID bdb_tool_entry_put(
        }
 
        /* add dn2id indices */
-       pdn = dn_parent1( be, e->e_ndn );
+       pdn = dn_parent( be, e->e_ndn );
        rc = bdb_dn2id_add( be, tid, pdn, e );
        if( rc != 0 ) {
                Debug( LDAP_DEBUG_ANY,
@@ -237,7 +237,7 @@ int bdb_tool_entry_reindex(
                (long) id, e->e_dn, 0 );
 
        /* add dn2id indices */
-       pdn = dn_parent1( be, e->e_ndn );
+       pdn = dn_parent( be, e->e_ndn );
        rc = bdb_dn2id_add( be, tid, pdn, e );
        if( rc != 0 && rc != DB_KEYEXIST ) {
                Debug( LDAP_DEBUG_ANY,