]> git.sur5r.net Git - openldap/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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 5 Oct 2011 23:37:21 +0000 (16:37 -0700)
servers/slapd/syncrepl.c

index 05706b406ffba593f6d4adf4b141a06d37f99181..aeafd09e0b719f594097eb8585e26d1a7bbdfb6e 100644 (file)
@@ -3090,7 +3090,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 ) {