mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Apparently working slapadd!
This commit is contained in:
parent
ebae2e5c62
commit
e2c2ff8deb
1 changed files with 13 additions and 3 deletions
|
|
@ -68,12 +68,12 @@ static int idl_insert( ID *ids, ID id )
|
|||
|
||||
assert( x > 0 );
|
||||
|
||||
if( x <= 0 ) {
|
||||
if( x < 1 ) {
|
||||
/* internal error */
|
||||
return -1;
|
||||
return -2;
|
||||
}
|
||||
|
||||
if ( ids[x] == id ) {
|
||||
if ( x <= ids[0] && ids[x] == id ) {
|
||||
/* duplicate */
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -130,6 +130,11 @@ bdb_idl_insert_key(
|
|||
ID ids[BDB_IDL_DB_SIZE];
|
||||
DBT data;
|
||||
|
||||
/* for printable keys only */
|
||||
Debug( LDAP_DEBUG_ARGS,
|
||||
"=> bdb_idl_insert_key: %s %ld\n",
|
||||
key->data, (long) id, 0 );
|
||||
|
||||
assert( id != NOID );
|
||||
|
||||
data.data = ids;
|
||||
|
|
@ -207,6 +212,11 @@ bdb_idl_delete_key(
|
|||
ID ids[BDB_IDL_DB_SIZE];
|
||||
DBT data;
|
||||
|
||||
/* for printable keys only */
|
||||
Debug( LDAP_DEBUG_ARGS,
|
||||
"=> bdb_idl_delete_key: %s %ld\n",
|
||||
key->data, (long) id, 0 );
|
||||
|
||||
assert( id != NOID );
|
||||
|
||||
data.data = ids;
|
||||
|
|
|
|||
Loading…
Reference in a new issue