]> git.sur5r.net Git - openldap/commitdiff
Fix for BDB_IDL_MULTI to work.
authorHoward Chu <hyc@openldap.org>
Thu, 6 Dec 2001 14:15:47 +0000 (14:15 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 6 Dec 2001 14:15:47 +0000 (14:15 +0000)
servers/slapd/back-bdb/dn2id.c

index 3ed169445f3313b88c0fd32b2e9ae989184db91a..4812dd7ad34b69c3f7d840d5db57a780c88f4433 100644 (file)
@@ -372,14 +372,7 @@ bdb_dn2idl(
        ((char *)key.data)[0] = prefix;
        AC_MEMCPY( &((char *)key.data)[1], dn, key.size - 1 );
 
-       /* store the ID */
-       DBTzero( &data );
-       data.data = ids;
-       data.ulen = BDB_IDL_UM_SIZEOF;  
-       data.flags = DB_DBT_USERMEM;
-
-       /* fetch it */
-       rc = db->get( db, NULL, &key, &data, bdb->bi_db_opflags );
+       rc = bdb_idl_fetch_key( be, db, NULL, &key, ids );
 
        if( rc != 0 ) {
                Debug( LDAP_DEBUG_TRACE,