Skip to content
Snippets Groups Projects
Commit 3e230c7f authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

trivial fixes

parent 9bdc8034
Branches
Tags
No related merge requests found
......@@ -79,8 +79,10 @@ ldap_back_add(
#ifdef ENABLE_REWRITE
switch (rewrite_session( li->rwinfo, "addDn", e->e_dn, conn, &mdn.bv_val )) {
case REWRITE_REGEXEC_OK:
if ( mdn.bv_val == NULL ) {
mdn.bv_val = e->e_dn;
if ( mdn.bv_val != NULL && mdn.bv_val[ 0 ] != '\0' ) {
mdn.bv_len = strlen( mdn.bv_val );
} else {
mdn = e->e_name;
}
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1,
......
......@@ -437,11 +437,11 @@ ldap_send_entry(
!= LDAP_SUCCESS) {
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1,
"slap_str2undef_ad(%s): "
"slap_bv2undef_ad(%s): "
"%s\n", mapped.bv_val, text ));
#else /* !NEW_LOGGING */
Debug( LDAP_DEBUG_ANY,
"slap_str2undef_ad(%s): "
"slap_bv2undef_ad(%s): "
"%s\n%s", mapped.bv_val, text, "" );
#endif /* !NEW_LOGGING */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment