mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Fix modrdn newSuperior checks
This commit is contained in:
parent
d6a37432bd
commit
514f605ef5
2 changed files with 3 additions and 3 deletions
|
|
@ -268,7 +268,7 @@ retry: /* transaction retry */
|
|||
|
||||
new_parent_dn = &p_dn; /* New Parent unless newSuperior given */
|
||||
|
||||
if ( newSuperior != NULL ) {
|
||||
if ( newSuperior->bv_val != NULL ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"bdb_modrdn: new parent \"%s\" requested...\n",
|
||||
newSuperior->bv_val, 0, 0 );
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ ldbm_back_modrdn(
|
|||
|
||||
new_parent_dn = &p_dn; /* New Parent unless newSuperior given */
|
||||
|
||||
if ( newSuperior != NULL ) {
|
||||
if ( newSuperior->bv_val != NULL ) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1,
|
||||
"ldbm_back_modrdn: new parent \"%s\" requested\n",
|
||||
|
|
@ -314,7 +314,7 @@ ldbm_back_modrdn(
|
|||
}
|
||||
}
|
||||
|
||||
if ( newSuperior != NULL ) {
|
||||
if ( newSuperior && newSuperior->bv_val != NULL ) {
|
||||
/* newSuperior == entry being moved?, if so ==> ERROR */
|
||||
/* Get Entry with dn=newSuperior. Does newSuperior exist? */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue