Diff for /servers/slapd/back-bdb/dn2id.c between versions 1.33 and 1.34

version 1.33, 2001/12/25 18:48:27 version 1.34, 2001/12/26 05:21:57
Line 1 Line 1
 /* dn2id.c - routines to deal with the dn2id index */  /* dn2id.c - routines to deal with the dn2id index */
 /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2id.c,v 1.32 2001/12/10 17:09:07 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2id.c,v 1.33 2001/12/25 18:48:27 kurt Exp $ */
 /*  /*
  * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 32  bdb_dn2id_add( Line 32  bdb_dn2id_add(
         assert( e->e_id != NOID );          assert( e->e_id != NOID );
   
         DBTzero( &key );          DBTzero( &key );
         key.size = strlen( e->e_ndn ) + 2;          key.size = e->e_nname.bv_len + 2;
         buf = ch_malloc( key.size );          buf = ch_malloc( key.size );
         key.data = buf;          key.data = buf;
         buf[0] = DN_BASE_PREFIX;          buf[0] = DN_BASE_PREFIX;
Line 121  bdb_dn2id_delete( Line 121  bdb_dn2id_delete(
                 e->e_ndn, e->e_id, 0 );                  e->e_ndn, e->e_id, 0 );
   
         DBTzero( &key );          DBTzero( &key );
         key.size = strlen( e->e_ndn ) + 2;          key.size = e->e_nname.bv_len + 2;
         buf = ch_malloc( key.size );          buf = ch_malloc( key.size );
         key.data = buf;          key.data = buf;
         key.flags = DB_DBT_USERMEM;          key.flags = DB_DBT_USERMEM;

Removed from v.1.33  
changed lines
  Added in v.1.34


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org