mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Minor cleanup
This commit is contained in:
parent
7685b237b7
commit
34214776d1
@ -122,7 +122,7 @@ int slap_bv2ad(
|
||||
if ( options != NULL )
|
||||
i = options - name;
|
||||
else
|
||||
i = strlen(name);
|
||||
i = bv->bv_len - (name - bv->bv_val);
|
||||
|
||||
if( i == sizeof("binary")-1 && strncasecmp( name, "binary", i) == 0 ) {
|
||||
if( slap_ad_is_binary( &desc ) ) {
|
||||
|
@ -32,7 +32,7 @@ bdb_dn2id_add(
|
||||
assert( e->e_id != NOID );
|
||||
|
||||
DBTzero( &key );
|
||||
key.size = strlen( e->e_ndn ) + 2;
|
||||
key.size = e->e_nname.bv_len + 2;
|
||||
buf = ch_malloc( key.size );
|
||||
key.data = buf;
|
||||
buf[0] = DN_BASE_PREFIX;
|
||||
@ -121,7 +121,7 @@ bdb_dn2id_delete(
|
||||
e->e_ndn, e->e_id, 0 );
|
||||
|
||||
DBTzero( &key );
|
||||
key.size = strlen( e->e_ndn ) + 2;
|
||||
key.size = e->e_nname.bv_len + 2;
|
||||
buf = ch_malloc( key.size );
|
||||
key.data = buf;
|
||||
key.flags = DB_DBT_USERMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user