]> git.sur5r.net Git - openldap/commitdiff
Quick fix for sync referral bug (ITS#3036)
authorKurt Zeilenga <kurt@openldap.org>
Fri, 26 Mar 2004 00:01:56 +0000 (00:01 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 26 Mar 2004 00:01:56 +0000 (00:01 +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 )) {