]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#7000 fix bad patch in ITS#6472
authorHoward Chu <hyc@openldap.org>
Thu, 28 Jul 2011 20:52:47 +0000 (13:52 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Jul 2011 20:52:47 +0000 (13:52 -0700)
servers/slapd/syncrepl.c

index 790c078195dc4c395dcbbf27be6f0407976ea9bd..717827084966b6097677d1987101df9e03f7c3f3 100644 (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 ) {