ITS#7000 fix bad patch in ITS#6472

This commit is contained in:
Howard Chu 2011-07-28 13:52:47 -07:00
parent 890d4c6216
commit ff7acea2d2

View File

@ -3085,7 +3085,7 @@ retry_modrdn:;
/* NOTE: noSuchObject should result because the new superior
* has not been added yet (ITS#6472) */
if ( rc == LDAP_NO_SUCH_OBJECT && !BER_BVISNULL( op->orr_nnewSup )) {
if ( rc == LDAP_NO_SUCH_OBJECT && op->orr_nnewSup != NULL ) {
Operation op2 = *op;
rc = syncrepl_add_glue_ancestors( &op2, entry );
if ( rc == LDAP_SUCCESS ) {