ITS#3657 added missing check

This commit is contained in:
Howard Chu 2005-04-15 03:57:57 +00:00
parent c0542eca6b
commit 46bea91379

View File

@ -403,8 +403,13 @@ retry: /* transaction retry */
np_dn = op->oq_modrdn.rs_newSup;
np_ndn = op->oq_modrdn.rs_nnewSup;
/* newSuperior == oldParent?, if so ==> ERROR */
/* newSuperior == oldParent? - checked above */
/* newSuperior == entry being moved?, if so ==> ERROR */
if ( dnIsSuffix( np_ndn, &e->e_nname )) {
rs->sr_err = LDAP_NAMING_VIOLATION;
rs->sr_text = "new superior is invalid";
goto return_results;
}
/* Get Entry with dn=newSuperior. Does newSuperior exist? */
rs->sr_err = bdb_dn2entry( op, ltid, np_ndn,