mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
minor cleanup
This commit is contained in:
parent
1bbdcba854
commit
4c16e67094
2 changed files with 4 additions and 7 deletions
|
|
@ -874,8 +874,7 @@ int slap_mods_opattrs(
|
|||
timestamp.bv_len = strlen(timebuf);
|
||||
|
||||
if( op->o_dn.bv_len == 0 ) {
|
||||
name.bv_val = SLAPD_ANONYMOUS;
|
||||
name.bv_len = sizeof(SLAPD_ANONYMOUS)-1;
|
||||
BER_BVSTR( &name, SLAPD_ANONYMOUS );
|
||||
nname = name;
|
||||
} else {
|
||||
name = op->o_dn;
|
||||
|
|
|
|||
|
|
@ -237,11 +237,9 @@ slapadd( int argc, char **argv )
|
|||
timestamp.bv_val = timebuf;
|
||||
timestamp.bv_len = strlen(timebuf);
|
||||
|
||||
if ( be->be_rootndn.bv_len == 0 ) {
|
||||
name.bv_val = SLAPD_ANONYMOUS;
|
||||
name.bv_len = sizeof(SLAPD_ANONYMOUS) - 1;
|
||||
nname.bv_val = SLAPD_ANONYMOUS;
|
||||
nname.bv_len = sizeof(SLAPD_ANONYMOUS) - 1;
|
||||
if ( BER_BVISEMPTY( &be->be_rootndn ) ) {
|
||||
BER_BVSTR( &name, SLAPD_ANONYMOUS );
|
||||
nname = name;
|
||||
} else {
|
||||
name = be->be_rootdn;
|
||||
nname = be->be_rootndn;
|
||||
|
|
|
|||
Loading…
Reference in a new issue