]> git.sur5r.net Git - openldap/commitdiff
Fix previous commit
authorHoward Chu <hyc@openldap.org>
Thu, 6 Dec 2001 03:29:23 +0000 (03:29 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 6 Dec 2001 03:29:23 +0000 (03:29 +0000)
servers/slapd/back-bdb/tools.c

index 5e58904da5d965add5300347bbcbbcd7ebe0b85b..b85862e5fdb33dd330d7e8ed6391c5bce7ad6643 100644 (file)
@@ -142,7 +142,7 @@ ID bdb_tool_entry_put(
 
        /* add dn2id indices */
        pdn = dn_parent( be, e->e_ndn );
-       rc = bdb_dn2id_add( be, tid, e->e_ndn, e->e_id );
+       rc = bdb_dn2id_add( be, tid, pdn, e );
        if( pdn ) free( pdn );
        if( rc != 0 ) {
                Debug( LDAP_DEBUG_ANY,