From 11b3c142e4d4b435fd9f84c35b81ae3a22cf7ae9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 6 Dec 2001 14:15:47 +0000 Subject: [PATCH] Fix for BDB_IDL_MULTI to work. --- servers/slapd/back-bdb/dn2id.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 3ed169445f..4812dd7ad3 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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, -- 2.39.5