From: Kurt Zeilenga Date: Fri, 26 Mar 2004 00:01:56 +0000 (+0000) Subject: Quick fix for sync referral bug (ITS#3036) X-Git-Tag: OPENLDAP_REL_ENG_2_2_8~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc87d60fe0a6930994dea6fc084abfef14486e09;p=openldap Quick fix for sync referral bug (ITS#3036) --- diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index a70fcc2102..bfb271b675 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -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 )) {