]> git.sur5r.net Git - openldap/commitdiff
ITS#3036 check for syncrepl
authorHoward Chu <hyc@openldap.org>
Thu, 25 Mar 2004 09:40:02 +0000 (09:40 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 25 Mar 2004 09:40:02 +0000 (09:40 +0000)
servers/slapd/passwd.c

index a70fcc2102dda0c1205cab669c3b3886a65af4e4..bfb271b675cd03f58d5b2d7a6d1bb90016ad2039 100644 (file)
@@ -110,7 +110,8 @@ int passwd_extop(
 
 #ifndef SLAPD_MULTIMASTER
        /* This does not apply to multi-master case */
-       if( op->o_bd->be_update_ndn.bv_len ) {
+       if( op->o_bd->be_update_ndn.bv_len ||
+               !LDAP_STAILQ_EMPTY( &op->o_bd->be_syncinfo )) {
                /* we SHOULD return a referral in this case */
                BerVarray defref = NULL;
                if ( !LDAP_STAILQ_EMPTY( &op->o_bd->be_syncinfo )) {